I have this code in my templates:
<?php wp_nav_menu( array( 'container' => '' ) ); ?>
It outputs the menu but wrapped in <div class="menu">
As I understand the documentation page it should not output the .
I have this code in my templates:
<?php wp_nav_menu( array( 'container' => '' ) ); ?>
It outputs the menu but wrapped in <div class="menu">
As I understand the documentation page it should not output the .
You must be logged in to post a comment.
Ok i got it. You need to set:
menu' => 'Name of the menu'
and
'theme_location'=> 'main_menu'
as well… something like:Maybe someone could use this as well 🙂