Answer the question
In order to leave comments, you need to log in
Where is the Wordpress menu formed?
Hello. The first day I work with WP, at the moment the task is to slightly change the menu classes in the template. Now the menu is formed as follows: "hook" is registered in header.php (or whatever it is called correctly)<? $hsHeader->GetMenu('main_menu','nav'); ?>
As a result, a menu of the following form is formed:
<ul class="nav">
<li id="menu-item-1" class="menu-item">Пункт 1</li>
<li id="menu-item-2" class="menu-item">Пункт 2</li>
<li id="menu-item-3" class="menu-item">Пункт 3</li>
</ul>
Answer the question
In order to leave comments, you need to log in
in your theme directory there should be a functions.php file there and look for
And no one said that classes can be added to the "Appearance - Menu" menu items in the admin panel ... If you don't find it there, you need to check the "Screen Settings - CSS Classes" menu
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question