Site logo

[Resolved] Site header/navigation help

Home Forums Support [Resolved] Site header/navigation help

Home Forums Support Site header/navigation help

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1431139
    Alexander

    Hello Generatepress Team,

    I am trying to achieve a shrinking sticky header that changes color.

    • Regular navigation should be white background, black logo and nav links
    • Shrunken sticky header black background, white logo, white nav links
    • Mobile nav also sticky with black header and white logo.

    When I change the background color for the navigation, which controls the background of the sticky header as well as mobile nav, the background of the regular navigation changes as well.
    How would I go about replicating the color behavior of the site linked below (minus the redundant hamburgers of course)?

    #1431158
    Leo
    Staff
    Customer Support

    Hi there,

    I think the easiest way to achieve this would be using the following steps:

    – Create a merged header element:
    https://docs.generatepress.com/article/transparent-header-and-navigation/

    – Add the header offset to match your header height:
    https://docs.generatepress.com/article/header-element-overview/#offset-site-header-height

    – Use the custom navigation colors in the page hero set the color you want for the static (non-sticky) navigation (white or transparent):
    https://docs.generatepress.com/article/header-element-overview/#navigation-colors

    – The static site logo (black) can be uploaded in the customizer:
    https://docs.generatepress.com/article/adding-header-logo/

    – The sticky logo (white) can be uploaded as the sticky navigation logo:
    https://docs.generatepress.com/article/sticky-navigation/#sticky-navigation-logo

    – The sticky navigation color can be set in the customizer as the primary navigation color.

    Let me know if this helps 🙂

    #1431212
    Alexander

    Thank you very much for the fast reply and detailed instructions!
    It was super easy to do for the desktop menu and works brilliantly.
    What I am now struggling with, is to get the mobile nav to be sticky (without shrink) with black background and white logo.
    Currently it is switching just like the desktop nav and the background color settings for the off-canvas panel on mobile dont seem to be taking.

    #1431214
    Leo
    Staff
    Customer Support

    Can you link us to the GP site in question?

    #1431227
    Alexander

    Absolutely, here is a link. I also created an account for you but not sure how to send the credentials

    http://plutoscene.lifeit.at/

    #1431229
    Leo
    Staff
    Customer Support

    Trying using merge on desktop only in the header element.

    #1431248
    Alexander

    Genius! That did the trick.
    Now I am just struggling with the off-canvas menu.
    Changing the background for Menu and Sub-Menu items no longer works.

    Edit: Please disregard the issue with the canvas menu. Backgrounds not working was created by some custom css from a previous attempt at making the menu work.

    Thank you very much for your outstanding support!
    🙂

    #1432299
    Leo
    Staff
    Customer Support

    No problem 🙂

    #1466934
    Heinrich

    tks leo, saved my life today 🙂

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