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 *