Wordpress Navigation remove container -


hi have problem wordpress navigation tools. want remove containing class.

according documentation setting 'containter' => false removes containing class.

but problem when have done so, nothing happened.

<?php wp_nav_menu( array( 'theme_location' => 'header-menu',                          'container' => false                         ) ); ?> 

but when menu displayed still enclosed inside tag.

do yo guys have idea how fix it?

i found problem. forgot set header menu in functions.php , in admin panel well.

register_nav_menus(     array(       'header-menu' => __( 'header menu' ),       'footer-menu' => __( 'footer menu' ),     ) ); 

make sure use both , in admin panel menus set correct menu container.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

javascript - Preserving URL fragment through CAS sign-on -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -