The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 861 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SOLVED i18n Нow to remove the menu item from the output
#3
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:
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.
Reply


Messages In This Thread
RE: i18n Нow to remove the menu item from the output - by AleksK - 2017-02-23, 12:58:05



Users browsing this thread: 1 Guest(s)