[Resolved] move navigation search

Home Forums Support [Resolved] move navigation search

Home Forums Support move navigation search

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #274995
    Kristy

    Hi there. Is it possible to move the navigation search to the secondary navigation? Any info would be helpful! Thanks!

    #275041
    Leo
    Staff
    Customer Support

    Hi Kristy,

    Try the steps in here: https://generatepress.com/forums/topic/navigation-search-bar/#post-102033

    Replace the block of code in step #1 with this:

    .main-navigation .search-item {
    	display: none;
    }
    .secondary-navigation .search-item.custom {
    	display: block;
    }

    Let me know if this works.

    #275133
    Kristy

    It does work, in that it adds the search icon to the top menu bar. But when I click on it I cannot find the field to type in the search and there is an X where the search icon was. Screenshots:

    http://screenshotlink.ru/4961cf812d517b55bd8be7b95d79155c.png

    http://screenshotlink.ru/a7135361bd5e8a3587038edc0ac81d31.png

    #275175
    Tom
    Lead Developer
    Lead Developer

    It might be easier to just use the primary navigation as the secondary navigation. They both have the same options, so if you switch the look of them you shouldn’t be able to tell the difference.

    Let me know πŸ™‚

    #275190
    Kristy

    Hi Tom. Can you explain that a bit? I’m not sure I quite get what you mean…

    #275195
    Tom
    Lead Developer
    Lead Developer

    The primary and secondary navigation are actually pretty much identical. You can change the colors, spacing and typography of both of them identically. The only difference is the primary navigation has the sticky effects and navigation search.

    So theoretically, you could style your primary navigation to look like your secondary navigation and include the navigation search. Then style your secondary navigation to look like your primary navigation.

    It doesn’t work for everyone (if they need the primary nav to be sticky for example), but does do the trick for some who are trying to achieve this.

    Let me know if you need more info πŸ™‚

    #275201
    Kristy

    Got it. Nice. Works like a charm, easy as pie. Thanks Tom!

    #275339
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

    #374798
    Gaurav

    image

    Hi, please let me know how do i swap the position of Wishlist heart icon and search icon, i added wishlist icon using primary menu navigation label, and search is enabled through customization option,

    thank you,

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