I am building a custom wordpress theme using underscores and want to add two div's inside the navigation. I know I have to use a custom Walker, but I don't know exactly how and all i can find is how to customize the list items themselves. But all I need is to div's on top of the generated list.
This is what i get now:
<div class="menu-all-pages-container">
<ul id="primary-menu" class="menu">
<li>Menu item 1</li>
<li>Menu item 1</li>
...etc
</ul>
</div>
What I want to have:
<div class="menu-all-pages-container">
<div id="mydiv"></div>
<div class="button"></div>
<ul id="primary-menu" class="menu">
<li>Menu item 1</li>
<li>Menu item 1</li>
...etc
</ul>
</div>
As I said, I think I need a custom Walker and customize the start_el() function? But I am lost after that..
Thanks in advance :)