Asked 7 years ago
19 May 2017
Views 2747

posted

how to remove container div of the navigation menu in wordpress


<div class="menu">
<ul>
<li class="page_item page-item-16"><a href="http://localhost/example/home/">Home</a></li>
<li class="page_item page-item-2"><a href="http://localhost/example/sample-page/">Sample Page</a></li>
</ul>
</div>


how to remove container div of the navigation menu in Wordpress

it should be direct <ul> , there is no <div class="menu">


wp_nav_menu( );


Mitul Dabhi

Mitul Dabhi
answered Nov 30 '-1 00:00

try to container to false . it should remove wrapper div in nav menu in Wordpress

so try

      wp_nav_menu( array( 'container'=> false, 'menu_class'=> false, ) ); 
kiran

kiran
answered Nov 30 '-1 00:00


 wp_nav_menu( array( 'container' => '' ) );  


make container argument empty .
Post Answer