I leave here a way to solve. Maybe it will help someone.
I use machine translation. Forgive my errors.
There are two ways:
First method - it is simple, but it is better not to use it)
It only hides the menu item from the user. In the page code ("Ctrl + U" in browser) all hidden will be seen and it is wrong!
Add using CSS for the tag <li>:
display: none !important;
visibility: hidden !important;
GetSimple It adds a number of additional classes for tags - use them.
The following apply: I18N Plugin, HTML, CSS
Example:
In example we hides menu item "vidy-rabot"...
Class .menu-top-primary - name depends on your imagination
Class .vidy-rabot - name depends on "page slug"
HTML code in template:
CSS code:
If there is a menu item which constant reference "vidy-rabot" and it should hide in the menu - то then write a CSS:
So we can hide any menu item based on its "page slug". Instead "vidy-rabot", use your.
I use machine translation. Forgive my errors.
There are two ways:
First method - it is simple, but it is better not to use it)
It only hides the menu item from the user. In the page code ("Ctrl + U" in browser) all hidden will be seen and it is wrong!
Add using CSS for the tag <li>:
display: none !important;
visibility: hidden !important;
GetSimple It adds a number of additional classes for tags - use them.
The following apply: I18N Plugin, HTML, CSS
Example:
In example we hides menu item "vidy-rabot"...
Class .menu-top-primary - name depends on your imagination
Class .vidy-rabot - name depends on "page slug"
HTML code in template:
PHP Code:
<nav class="menu-top-primary">
<ul>
<?php get_i18n_navigation(return_page_slug(),1,1); ?>
</ul>
</nav>
CSS code:
If there is a menu item which constant reference "vidy-rabot" and it should hide in the menu - то then write a CSS:
Code:
.menu-top-primary li.vidy-rabot {
display: none !important;
visibility: hidden !important;
}
So we can hide any menu item based on its "page slug". Instead "vidy-rabot", use your.
I use machine translation. Forgive me my errors.