I'm having a little issue which looks like a bug but probably isn't. Here we go:
I simply have this:
<?php wp_nav_menu( array('theme_location' => 'primary', 'container' => false, 'menu_class' => 'nav')); ?>
Now, my issue is that I expect my output to be:
<ul class="nav">
<li>My link</li>
</ul>
instead I'm getting:
<div class="nav">
<ul>
<li>My Link</li>
</ul>
</div>
I can't assign my nav class to the ul. How do I do that?
Many thanks!
'container'
that should be set to an empty string (example). You need it to change the … container. :)'container' => false,
to set custom class on UL element.