Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SOLVED i18n Нow to remove the menu item from the output
#1
Information 
Hi!
I need your help.
I want to display two menu on the site  -  main menu + off-canvas menu(for mobile).

In the main menu, one of the items i need hide.
In the off-canvas menu(for mobile) we need all menu items including hidden in main menu.

To display the main menu, I use:

PHP Code:
<?php get_i18n_navigation(return_page_slug(),0,1,I18N_SHOW_MENU'menu'); ?>

To display the off-canvas menu, I use:

PHP Code:
<?php get_i18n_navigation(return_page_slug(),0,99,I18N_SHOW_MENU'off-canvas'); ?>

I tried to disable the desired option in the admin panel - "turn on / off the visibility of the in menu". BUT THEN the item is lost in both menu.

Maybe there is some php code like menu rendering to remove an item from the menu, knowing link page or ID or name page or slug or something else.
PHP I do not know, I can only slightly edit.
I use machine translation. Forgive me my errors.
Reply


Messages In This Thread
i18n Нow to remove the menu item from the output - by AleksK - 2017-02-16, 11:21:41



Users browsing this thread: 1 Guest(s)