wp_nav_menu() customized

Question
<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

0
Dani 1 year 2020-07-17T15:10:23-05:00 0 Answers 43 views 0

Leave an answer

Browse
Browse