Add search form to a WordPress Menu

Home » Blog » Tutorials » Add search form to a WordPress Menu

Add search form to a WordPress Menu

Many time you need to add search form to a WordPress menu bar. Most of the modern/premium themes already have search option to be added at the menu bar, top bar. You can enable disable this option from your themes options panel. But there are many free themes that doesn’t provide this option. In that case we need to add the plugin or customize the theme to achieve the goal.

In this post I will show you how to add search from in a WordPress menu.

Add following code snippet in your themes functions.php

Don’t forget to change the menu name in above code snippet.

You can also add search form to a WordPress menu by using Add Search to Menu Plugin.

 

Leave a Comment

Request a Quote