Sign in

Different website logos for the top navbar and footer

  • This topic has 1 reply, 2 voices, and was last updated 3 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7460
    shaun2k

    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
    itips3727

    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/

     

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.