[Resolved] Sticky bar is not reduced when I enable Navigation Search

Home Forums Support Sticky bar is not reduced when I enable Navigation Search

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1499049
    Diogenes

    Hi.

    I’m setting up sticky navigation on my test site, so it looks like the effect shown here: https://docs.generatepress.com/article/navigation-as-a-header/#sticky-navigation-with-height-transition

    I followed all the steps and it works fine, but when I enable Navigation Search in Customize> Layout> Primary Navigation, the bar doesn’t get reduced when in fixed mode when scrolling.

    I don’t have cache plugin installed. I have the latest version of generatepress with flexbox.

    I would appreciate the help.

    #1499098
    Elvin
    Staff
    Customer Support

    Hi,

    The sticky bar’s size changed because of the search icon’s line-height when you added it in.

    You can try adding this CSS code:

    .main-navigation .menu-bar-item > a {
        line-height: unset;
    }

    Here’s how to add CSS – https://docs.generatepress.com/article/adding-css/

    Let us know if it works for you.

    A wise man once said:
    "Have you cleared your cache?"

    #1499713
    Diogenes

    Thanks Elvin, it worked.

    Did I do something wrong, or is it a generatepress bug?

    #1500583
    Elvin
    Staff
    Customer Support

    Did I do something wrong, or is it a generatepress bug?

    No, you didn’t do anything wrong. Don’t worry about it. πŸ™‚

    And it’s not really a bug. That’s just how the navigation search icon is set by default.

    Good to know it works for you now. No problem. πŸ˜€

    A wise man once said:
    "Have you cleared your cache?"

    #1501485
    Diogenes

    Thanks Elvin πŸ™‚

    #1503840
    Elvin
    Staff
    Customer Support

    No problem. πŸ˜€

    A wise man once said:
    "Have you cleared your cache?"

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