There is a site on wp, you need to bring the menu to the form:

<nav itemscope itemtype="http://www.schema.org/SiteNavigationElement"> <ul class="menu"> <li itemprop="name"><a itemprop="url" href="https://123.ru/">Главная</a></li> <li itemprop="name"><a itemprop="url" href="https://123.ru/author-bloga/">Автор</a></li> </ul> </nav> 

Now it looks like this:

 <div id="navbar-collapse-1" class="navbar-collapse collapse"><ul class="nav navbar-nav"><li id="menu-item-1992" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-home menu-item-1992"><a title="Главная" href="https://123.ru/">Главная</a></li><li id="menu-item-1993" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-1993"><a title="О нас" href="https://123.ru/">О нас</a><ul class="sub-menu"><li id="menu-item-2142" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-2142"><a title="Документы" href="https://123.ru/">Документы</a></li> 

I don’t think where it’s correct, the whole template has been dug up and never found.

  • The menu is generated in wp_nav_menu() , where several hooks are used to modify both classes and the entire html menu. But you need not. First, break the functionality of the menu and submenu. All css on these classes hangs, and sometimes js. And secondly, do you seriously believe that you understand SEO better than the team of the creators of WP? - KAGG Design
  • We need micromarking, I already proved it to myself more than once and saw it with an example, I only worked with other cms earlier and there it was easier to implement it, and here I got a hand on the project that I’ve worked on before, everyone messed up, and you won’t find the ends. you just need to add attributes to the links, the menu itself I found where to isolate, but each hotel item did not figure it out. - Vadim Paramonov
  • Add your own classes, don't delete them, break the site - KAGG Design
  • Thanks, I'll try to figure it out. :) - Vadim Paramonov

0