This thread is resolved. Here is a description of the problem and solution.
Problem:
The client wants the language menu to appear only on a specific page, despite setting it up, the language menu appears on all pages.
Solution:
If you're experiencing this issue, we recommend trying the following steps:
1. Add the following CSS to the custom CSS section of your theme to hide the language switcher on pages other than the specified one:
.wpml-ls-current-language.wpml-ls-menu-item:not(.menu-item-has-children) {<br /> display: none !important;<br />}
2. If you are using the Dropdown option from the Language menu items style section and want to disable the Current Language option, switch to the List of languages option instead. You can find this setting under WPML >> Languages > Menu Language Switcher.
For more detailed instructions, please visit our documentation: How to display or hide the language switcher on specific pages
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.