Answer the question
In order to leave comments, you need to log in
How to deal with nested menu items when landing on Wordpress?
Good morning!
there is such a piece of HTML nested menu code
<!-- <ul class="mainNavigation" id="mobile">
<li id="toggle"><a href="" class="mainLink" >Ассортимент</a>
<ul class="dropDown" id="drop">
<li id="check1"><a href="" class="drop-down-menu"><div class="miniIcon miniCottage"></div><span>sometext</span></a></li>
<li><a href="" class="drop-down-menu"><div class="miniIcon miniProfi"></div><span>sometext</span></a></li>
<li><a href="" class="drop-down-menu"><div class="miniIcon miniGreen"></div><span>sometext</span></a></li>
</ul>
Answer the question
In order to leave comments, you need to log in
Kind.
Classes can be added to menu items from the editor. You need to go to the Appearance -> Menu section and enable the display of classes in the "Screen Settings" tab in the upper right corner.
Actually assign, but <div class="miniIcon miniProfi"></div>
implement using css-selector miniProfi:before
.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question