Im currently printing out:
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
Which outputs:
<div class="menu">
<ul>
<li class="current_page_item">Frontpage</li>
<li class="page_item page-item-2">etc</li>
</ul>
</div>
In my original HTML setup ive got an <span>
within the <li>
which looks like this:
<div id="menu">
<ul>
<li>
<span>
<a href="#">Menu1</a>
</span>
</li>
Any ideas on how to adjust this?
Use the arguments
before
andafter
:To see how these arguments are used, look at the method
start_el()
inWalker_Nav_Menu
: