menu array parameters not working unless default menu location selected
-
I had to set the default menu in : theme > customize > menu location, in order to get menu array parameters to work.
Something like
<?php wp_nav_menu( array( 'container' => '' ) ); ?>
would not remove the container unless I had set the menu location or default menu.Just a comment, I could not find the solution in google or this forum.
If
<?php wp_nav_menu(); ?>
works, then it is buggy / not rational that<?php wp_nav_menu( array( 'container' => '' ) ); ?>
does not.
- The topic ‘menu array parameters not working unless default menu location selected’ is closed to new replies.