How to add a WordPress search form to a specific wp_nav_menu

This snippet twill add the search form to your WordPress wp_nav_menu. Don’t forget to update the MENU-NAME to specify the menu you wish to display within, just in case you have multiple menus.

Instructions
Add this code to your functions.php file.

Comments

One Reply to “How to add a WordPress search form to a specific wp_nav_menu”

Leave a Reply

Your email address will not be published. Required fields are marked *

Snippet Info

Tested with Wordpress v. 4.8
Last Modified: 16.05.2017
Last Reviewed: 16.05.2017
Review Status: Needs Review

How to add a WordPress search form to a specific wp_nav_menu
4.3 (85.71%) 7 vote[s]
Please report broken snippets.
Report Broken Snippet