There is a menu in the admin panel. There is also a small class whose essence is to add a specific class to ul.
class My_Walker_Nav_Menu extends Walker_Nav_Menu { function start_lvl(&$output, $depth = 0, $args = Array()) { $indent = str_repeat("\t", $depth); $output .= "\n$indent<ul class=\"dropdown-menu\">\n"; } } It is necessary to convert menu items that have submenus as follows: Instead of
<li class="menu-item-has-children"> <a>ссылка</a> </li> withdraw
<li class="menu-item-has-children"> <a>ссылка <span>что-то тут</span></a> </li> tell me how to do this?
<li>? - Evgeny Nikolaev