use wix code hide spexific menu item

Does anyone know how can I hide specific menu item in conditional case?
I need to do it for my mult-language website. Some pages are in chinese but some are in english.

Many thanks!

Hello Terry,

this feature is not available at this time, however you can hide and show pages from the menu options:

Massa

However I need to show the Chinese menu on the Chinese page, and english menu on the English pages. Which seems is not possible to do so on Wix?

Hello Terry

i would suggest you create your own menus and connect each one to whatever pages it should navigate to and that would be as follows:

  • add two box

  • in each box add buttons relating to the pages (English / Chinese ).

  • set the buttons texts to the pages titles

  • set each button to link to the right page.

  • put the two boxes in the header (on top of each other) and make them both hidden on load

  • on page ready add an if statement (if English show English menu else if Chinese show the Chinese menu) . -you can do that by checking the page title.
    I would suggest you also check this article :The Wix Language Menu App is No Longer Available | Help Center | Wix.com

Best!
Massa

Is it still not possible to hide a specific menu item in code? This seems a huge oversight.

2 Likes