[Support request] search bar in menu

Home Forums Support [Support request] search bar in menu

Home Forums Support search bar in menu

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1652690
    Den

    Hello team,

    Is there a way I can use to show a search bar without showing the menu? as I do not have such big data to show the menu on my website.

    Whenever I turn off the navigation bar, it closes the search box as well (which I don’t want)

    What to do?

    #1652783
    Den

    Hi team,

    I followed one fo the thread created by Tom (Lead Developer) here – https://wordpress.org/support/topic/generatepress-search-how-to-change-visual-display/

    HE SAID

    add this function:

    add_action('generate_inside_navigation','generate_add_custom_search');
    function generate_add_custom_search()
    {
          echo '<div class="custom-search">';
                get_search_form();
          echo '</div>';
    }

    Then add this CSS:

    .custom-search {
          float: right;
    }

    I followed as he said and it is now functioning.

    But, the search bar does not work on Mobile Devices (which is crucial) how do I make it work on mobile devices.

    Link for my site link is present in Private information section ๐Ÿ™‚

    #1652943
    David
    Staff
    Customer Support

    Hi there,

    disable the Mobile Header in Customizer > Layout > Header. This will keep the same layout as your desktop.

    #1653268
    Den

    Thanks ๐Ÿ™‚

    #1653418
    David
    Staff
    Customer Support
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.