[Resolved] my search button not working

Home Forums Support [Resolved] my search button not working

Home Forums Support my search button not working

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1302874
    Janani

    Dear Team

    I have given the search button (magnifying glass) icon in the primary navigation. But it does not work. Can you please tell me how to resolve this?

    Warm regards,

    #1302939
    Leo
    Staff
    Customer Support

    Hi there,

    Just tested it and it’s working for me.

    Your navigation is set to full width so it’s going at the full width of the container:
    https://www.screencast.com/t/zvGZDXYHDwbr

    Maybe try setting the inner width to contained?
    https://docs.generatepress.com/article/navigation-layout/

    Let me know 🙂

    #1304309
    Janani

    Dear Leo

    Thanks, I tried that, but the search button is showing as a separate line item below the primary navigation, which does not look good.

    Cant we have something like a small search box where people could type their search terms like this website?
    https://eckharttolle.com/

    #1304787
    David
    Staff
    Customer Support

    Hi there,

    Try adding this CSS:

    .main-navigation .inside-navigation {
        max-width: 850px;
        margin-left: auto;
        margin-right: auto;
    }
    .main-navigation .navigation-search {
        top: 100%;
        max-width: 300px;
        left: unset;
        right: 0;
        border: 2px solid #ccc;
    }
    #1305787
    Janani

    Wonderful, it works!

    Warm regards,

    #1306007
    David
    Staff
    Customer Support

    You’re welcome

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