Site logo

[Resolved] Merged header Hero logo for sticky navigation as well as primary nav

Home Forums Support [Resolved] Merged header Hero logo for sticky navigation as well as primary nav

Home Forums Support Merged header Hero logo for sticky navigation as well as primary nav

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2598422
    Len

    I have a home page hero setup, with all navigation and site logo in white, whereas for all other pages the navigation and site logo are dark.
    I noticed that when scrolling, the sticky menu didn’t have the logo, so I set that in the customiser.
    All pages now have the dark logo in the stocky menu, including the home page.

    The Site Header in the page Hero element has no option for this, and the site logo set here isn’t used by the sticky menu – which would make sense.

    How do I get the home page sticky logo to be the white version – as set in the page hero.

    Thanks, LenW

    #2598498
    Len

    I have found a solution.

    As the image is a png, I have used CSS to change it to white, using this onto the image/icon selector:

    .home .sticky-navigation-logo img {
    filter: brightness(0) invert(1);
    }

    LenW

    #2598532
    Leo
    Staff
    Customer Support

    Hi there,

    Glad you’ve found a solution.

    There could potentially be a workaround without CSS but I can’t be sure without seeing your site and its layout.

    Let me know if you’d like another look 🙂

    #2599049
    Len

    Leo

    I am curious why the Hero settings don’t take account of the sticky menu and logo, its sort of part of the whole effect.

    If there is a better way I would appreciate knowing. This only worked because I have a png single colour logo, had it been a 2 color logo this would not work.

    So yes, if this can be considered please as a fix to GP, would appreciate it.

    Thanks
    LenW

    #2599276
    David
    Staff
    Customer Support

    Hi there,

    If you need to switch the actual logo image just on the homepage sticky nav, then see my reply here:

    https://generatepress.com/forums/topic/duplicate-logo-in-homepage/#post-2576852

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