This code enables you to add a search form before the primary nav menu items in the mobile menu like this :
The download folder for logged in users also includes code which enables you to add the search box after the menu like this :
Tested using the Essence Pro child theme by StudioPress.
There’s 2 steps relating to the files in the download folder :
Step 1 : Copy & paste 1 of the PHP code snippets from the functions file to the end of your child themes functions file.
Step 2 : Copy & paste the CSS from the style.css file to the end of your child themes style sheet and clear caching.
Register or login to access the download folder :