Many good and popular WordPress themes don’t automatically add a search button or form to the main menu for both desktops and mobile devices.
Although these themes have great features and you’d like to continue using them to run your blogs, without the search bar in the menu, the only other option is to add the search form to the sidebar via WordPress widget.
If you’re using a mobile device, and you want search for content on the page. the search button is usually at the bottom of the screen. since that’s why most mobile sidebar are placed.
For those looking for an easy option to add the search button to the main menu on both desktop and mobile device, this post should help you do that.
It shows you how to add a search form to the main menu (top navigation menu) on desktops and mobile devices so users can quickly search for content on the page or site.
When you’re ready to add the search form, please follow the steps below:
Step 1: Add Plugin
If you’re new and don’t know how to develop or modify your WordPress theme to add a custom search for to the main menu, you other option will be to use a plugin to do that.
A very good plugin to use is Ivory Search
That might be other good plugin options, but the one above works great on most WordPress themes. Simply go to your WordPress admin dashboard and navigate to Plugin — Add New , then search for Ivory Search.
Select install it.
Step 2: Add Search form to Main Menu
Now that the plugin is installed. navigate to Ivory Search ==> Settings
Then select the Primary Menu to display the search form on. Also select the form style to use. The Sliding option provides optimal space options especially for mobile devices.
When you’re done, click the Save button.
Now take a look at your main menu to see if the search for shows on it. if you’re satisfied with your settings. you can close out. If now, go back to the settings page and configure more advanced settings.
You can define the search post types, search form style, search menu locations, manage mobile display for search, and more.
You can also upgrade to take advantage of other features that are not available to free version.
Hope this post helped you add a search for to your WordPress blog main menu on both desktop and mobile devices.
You may also like the post below: