Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Different website logos for the top navbar and footer

  • #7460
    Avatar photo[anonymous]

    Hi,

    I am using the Technews theme with he top navbar background color in blue and the menu items in white.
    The website logo (png) is also in white which shows up nicely.
    However, the footer section’s background color is also white and since the same website logo is used, it is not visible.

    Is it possible to add an option to specify an alternate website logo (in this case perhaps a black version) to be used for the footer or elsewhere in the website?

    Thanks.

    #7466
    Avatar photo[anonymous]
    [anonymous] wrote:

    Hi,

    I am using the Technews theme with he top navbar background color in blue and the menu items in white.

    The website logo (png) is also in white which shows up nicely.

    However, the footer section’s background color is also white and since the same website logo is used, it is not visible.

    Is it possible to add an option to specify an alternate website logo (in this case perhaps a black version) to be used for the footer or elsewhere in the website?

    Thanks.

    Not quite an answer to your issue, but a potential quick alternative option to consider.

    Perhaps just don’t display the footer logo: just keep your main white logo in the blue header / menu bar.

    How: simply remove lines 2 to 9 in footer.hbs (Documents ▸ ⁨Publii⁩ ▸ ⁨sites⁩ ▸ ⁨YOUR_SITE ▸ ⁨input⁩ ▸ ⁨themes⁩ ▸ ⁨YOUR_THEME ▸ partials)

    So the lines to remove are:

    
       {{#if @website.logo}}
          {{@website.name}}
             {{else}}
                {{@website.name}}
       {{/if}}
    

    Though as @Bob says:

    To preserve your custom code and prevent it being overwritten the next time the theme is updated, please ensure that you have created override files; these are, essentially, copies of the existing theme files that are stored separately from the main theme files → https://getpublii.com/dev/theme-overrides/