While the upgrade of this great plugin comes out, I found a way to insert the WordPress search form inside the menu…
Go to ‘wp-responsive-menu.php’ and call the WordPress search form inside the wprmenu_menu function (line 48). Adding <?php get_search_form(); ?>
before the <ul>
tags.
So you just have to change this specific code:
<ul id="wprmenu_menu_ul">
<?php
$menus = get_terms('nav_menu',array('hide_empty'=>false));
if($menus) : foreach($menus as $m) :
if($m->term_id == $options['menu']) $menu = $m;
endforeach; endif;
if(is_object($menu)) :
wp_nav_menu( array('menu'=>$menu->name,'container'=>false,'items_wrap'=>'%3$s'));
endif;
?>
</ul>
For this:
<div id="search-form">
<?php get_search_form(); ?>
</div>
<ul id="wprmenu_menu_ul">
<?php
$menus = get_terms('nav_menu',array('hide_empty'=>false));
if($menus) : foreach($menus as $m) :
if($m->term_id == $options['menu']) $menu = $m;
endforeach; endif;
if(is_object($menu)) :
wp_nav_menu( array('menu'=>$menu->name,'container'=>false,'items_wrap'=>'%3$s'));
endif;
?>
</ul>
If you want the search-bar to be on the bottom of the menu, just put the <?php get_search_form(); ?>
after the </ul>
tag