How to create div elemen inside li element that has child, but the div only apply for every first a element using Walker_Nav_Menu

<ul class=”main-menu”>
<li><a href=””>Menu 1</a></li>
<li class=”has-child”>
<div class=”has-submenu”>
<a href=””>Menu 2 (with submenu)</a>
<span class=”caret”></span>
</div>
<ul class=”sub-menu”>
<li><a href=””>Submenu 1</a></li>
<li><a href=””>Submenu 2</a></li>
</ul>
</li>
<li><a href=””>Menu 3</a></li>
<li><a href=””>Menu 4</a></li>

How to create that “has-submenu” div?

Read more here:: How to create div elemen inside li element that has child, but the div only apply for every first a element using Walker_Nav_Menu

Leave a Reply

Your email address will not be published. Required fields are marked *