I have created a responsive site in WordPress. This site has number of different navigation areas which I am wanting to consolidate into to one select menu when site is viewed via mobile device.
The code in my WordPress header.php file currently looks like this:
<?php dropdown_menu( array('dropdown_title' => '-- Main Menu --', 'container' => 'div', 'theme_location'=>'main_menu') ); ?>
However, I am wanting to consolidate multiple menus within this one select dropdown and have tried this:
<?php dropdown_menu( array('dropdown_title' => '-- Main Menu --', 'container' => 'div', 'theme_location'=>'main_menu', 'theme_location'=>'top_menu', 'theme_location'=>'footer_menu') ); ?>
Unfortunately, this still only shows the last menu 'footer_menu' instead of combining all three menus. Any ideas on how I can edit the above code correctly so that all menus will show in the select box as one?
Any help would be greatly appreciated.
You can use a code that I use regularly in some projects, something simple that pueds customize jQuery
You can change the value to set a specific div
Code complete jQuery
You could either implement this plugin http://wordpress.org/extend/plugins/responsive-select-menu/ or give http://tinynav.viljamis.com/ a trial.