[Resolved] Search in main navigation

Home Forums Support [Resolved] Search in main navigation

Home Forums Support Search in main navigation

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #248599
    Marga

    Hello,

    I’m using Max Mega Menu and the search tool in the main navigation seems to be out and when is clicked the search box can’t not seen. Is there any way to have a fix search box in the main menu or to have the search box with the word search inside?

    Another question is about the sticky navigation. When it’s on the small logo appears above the menu and the navigation centered.

    Maybe there is some kind os conflict with Max Mega Menu, is that possible? I’m using this Mega Menu because I need to display the menu in columns with icons.

    Many thanks for your help!

    #248789
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Any chance you can link me to your site so I can see?

    Let me know πŸ™‚

    #248793
    Marga

    Hi Tom,

    Yes, sure: http://abnetsoluciones.com/

    Thank you!!

    #248816
    Tom
    Lead Developer
    Lead Developer

    The sticky navigation issue can be fixed with this:

    .navigation-clone div#mega-menu-wrap-primary {
        float: right;
        clear: none;
    }

    The navigation search icon can be adjusted like this:

    #mega-menu-wrap-primary .search-item a {
        line-height: 60px;
    }

    The text when you type isn’t viewable because you have the background color and text color of the menu items set to white in “Customize > Colors > Primary Navigation”. If you set the text to black you should be able to see it.

    Hope this helps πŸ™‚

    #248827
    Marga

    Thank you for your reply Tom!

    I added these lines in the style.css file, but I can’t see any difference πŸ™

    And about the primary navigation I have set black (also I have it black in the Max Mega Menu settings)

    What am I doing wrong?

    #248839
    Tom
    Lead Developer
    Lead Developer

    Make sure you’re adding CSS like this: https://generatepress.com/knowledgebase/adding-css/

    As for the navigation search, I can now see the text while I type πŸ™‚

    #248921
    Marga

    Alright, now It works!! πŸ™‚

    About the navigation search, is there any way to show the word “Search” inside the box when it is clicked. Although you write automatically it’s a bit confusing if you can’t see the search gap.

    Thanks for your help!

    #249069
    Tom
    Lead Developer
    Lead Developer

    In order to add a placeholder to the navigation, you would have to overwrite the function: https://generatepress.com/forums/topic/enter-predefined-text-in-searchbox/#post-151358

    #249167
    Marga

    Many thanks Tom! I followed the instructions and with de Code Snippets plugin works! πŸ™‚

    #249242
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

    #268436
    Diego Fernando

    Hello Tom

    about this post, How can I change the color of search icon?

    Example:
    http://subefotos.com/ver/?3ce073d4e8f003d13cff0b7cb6739402o.png

    #268523
    Tom
    Lead Developer
    Lead Developer

    Absolutely:

    .main-navigation .main-nav ul li.search-item a {
        color: #FFFFFF;
    }
Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.