<div class="example">
<h1>Menu</h1>
<ul>
<li>sub-menu</li>
<li>sub-menu</li>
<li>sub-menu</li>
</ul>
</div><!-- end of example -->
<div class="example>
<h1>Menu</h1>
<ul>
<li>sub-menu</li>
<li>sub-menu</li>
<li>sub-menu</li>
</ul>
</div><!-- end of example -->
I’m trying to make a menu with wp_nav_menu() and I want to achieve a clean code like this. I’m trying to do it with a custom walker but I don’t have experience with this.
I think I have to overwrite a class but …
Coud you help me with the code?? Thanks for all
In my basis theme I use a walker for a simplified output:
See this answer for implementation details.