[Support request] Centering Navigation with same formatting when Sticky

Home Forums Support [Support request] Centering Navigation with same formatting when Sticky

Home Forums Support Centering Navigation with same formatting when Sticky

Viewing 15 posts - 1 through 15 (of 23 total)
  • Author
    Posts
  • #1498802
    jregist

    I’ve used this article – https://docs.generatepress.com/article/centering-logo-navigation/ – to try to get my logo to be centered with split navigation. However, I can’t seem to get it to just keep this same format when I scroll down the page. I used the

    Check this page — https://gfa.wishfulthinking.us/residential/ — to see what I mean. Seems like it should be easy to just turn off the change to a different sticky formatting. But I’m probably missing something.

    Thanks,

    Joel

    #1498803
    jregist

    Oops. The password is chicagoarchitect

    Thanks!

    #1498835
    Leo
    Staff
    Customer Support

    Hi there,

    It doesn’t look like you’ve followed the instruction completely.

    For example, I’m not seeing the menu-item-separator added as instructed in step 5 here:
    https://docs.generatepress.com/article/centering-logo-navigation/

    Can you make sure to use the exact steps detailed in the article and that the CSS match as well?

    Thanks!

    #1499085
    jregist

    Actually I don’t see that CSS Class (optional) option in the UI. So I just used the auto-assigned menu selector “#menu-item-823” in my CSS.

    #1499092
    Elvin
    Staff
    Customer Support

    Hi,

    You can enable the CSS class option on the Main menu UI through the “Screen Options” button on the upper right-hand side of the Appearance > Menu page. It’s on the left side of “Help” button.

    Here’s a demo on how to enable it – https://share.getcloudapp.com/6quPZLYw

    #1499821
    jregist

    Ok — I have made that change to get everything the way it was in the article. Still when I scroll down on this page – https://gfa.wishfulthinking.us/residential/ – I get the header moving over to left above the nav.

    Joel

    #1499824
    jregist

    Nevermind. I think I figured it out. Added this code and the logo stays in the center


    @media
    (min-width: 769px) {
    #sticky-navigation .main-nav,
    #sticky-navigation .main-nav .menu-item-separator {
    flex: 1;
    }

    #sticky-navigation .navigation-branding {
    position: absolute;
    left: 50%;
    transform: translatex(-50%);
    }
    }

    #1499831
    jregist

    Do you have any ideas to keep the original size and top and bottom spacing of the nav and logo when I scroll?

    #1500335
    Leo
    Staff
    Customer Support

    Can you try activating this option and see if it works better?
    https://docs.generatepress.com/article/navigation-as-a-header/

    Let me know ๐Ÿ™‚

    #1500370
    jregist

    The menu loses its formatting when I activate nav-as-header. However, when I scroll down the Sticky formatting looks perfect.

    #1500378
    Leo
    Staff
    Customer Support

    Try adding this CSS as well:

    .main-navigation .main-nav {
        flex-grow: 1;
    }
    #1500388
    jregist

    That’s looking much better. I still have some jerky reformatting that’s going on but should be able to figure that out.

    #1500407
    Leo
    Staff
    Customer Support
    #1500434
    jregist

    Removing the sticky logo completely? Done.

    #1500701
    Leo
    Staff
    Customer Support

    Hmm it’s super strange that the logo disappears.

    The logo should remain in the static navigation when the navigation as a header option is used as seen here:
    https://www.screencast.com/t/KFJUNzru

    I tried for awhile but unable to replicate the issue on my end.

    Is there a chance you can disable all plugins except GP Premium, remove your custom CSS except the centering logo CSS and make sure there is nothing conflicting?

    Let me know ๐Ÿ™‚

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