Create a wordpress menu?

Hi all!
I have this markup
<ul class="nav navbar-nav" id="menu-main-menu">

the <li>
 <a data-toggle="dropdown" href="#" title="Shop">Shop <span class="caret"></span></a>

 <ul class="dropdown-menu">
the <li>
 <a href="#" title="All Products">All Products</a>
</li>
the <li>
 <a href="#" title="Award Winning">Award Winning</a>
</li>
the <li>
 <a href="#" title="Eyes">Eyes</a>
</li>
</ul>
</li>
</ul>

that is, the tag <a></a> adds a data-toggle="dropdown" and tag
    added class="dropdown-menu" .
    Tell me how to build such a menu? I would be grateful for any help.
    Thank you.
July 2nd 19 at 17:14
2 answers
July 2nd 19 at 17:16
Solution
July 2nd 19 at 17:18
The object walker to help. It allows you to customize the menu to your taste, as you like.

Find more questions by tags WordPress