I am working on a wp theme for a site which is already built on wp, and having very large menu which is divided into two menu in wp admin.
I want to merge this two menu in theme in single UL. Currently it generates two menu in different div container and ul li, and is breaking the styles & js applied on it.
How can i merge this two menu into single ul li in single container?
ok, so if you are using the wp_nav_menu()
try using something like
using the items_wrap will remove the ul from each menu, so encapsulate the menu in an already defined ul tag, the wp_nav_menu will spit out just li tags.
See Removing the ul wrap: http://codex.wordpress.org/Function_Reference/wp_nav_menu
M
The problem is that each wp_nav_menu is still being wrapped in individual div’s.
You need to turn off those div’s as well, by adding “‘container’ => false” to each one, like so:
You can combine them with this method. It keeps some of the menu classes generated by WP.