Background of the issue:
I have only one page that will be translated on this site, which is hidden link. I would like the language menu to be displayed only on this page, in any language. I set up French, but there will be about 5 languages. I tried to disable the current language from the menu customizer, but it did not work. When I go to another page like hidden link, the menu is there with the current language. I clicked in Appearance/menu to create a menu switcher from the original language.
Symptoms:
The language menu is appearing on all pages instead of only on the specified page.
Questions:
How can I display the language menu only on the specified page?
Why is the language menu appearing on all pages despite my settings?
Thank you for contacting WPML support. It seems you want to display the language switcher if the page is translated into secondary language, otherwise it should not be visible.
You should be able to achieve it by following the either of the below steps:
1. Add the below CSS in the custom CSS section of the theme:
2. When you choose the Dropdown option from the Language menu items style section then you can’t disable the Current Language option as it is necessary to build the dropdown language switcher.
If you want to disable the Current language option then please select the List of languages option instead of Dropdown from WPML >> Languages > Menu Language Switcher as you can see in the attached screenshot.