This thread is resolved. Here is a description of the problem and solution.
Problem:
The client wants the language switcher to only appear on the Malay language version of their website.
Solution:
If you're experiencing this, we recommend you use CSS to hide the language switcher from specific pages or languages. You can find detailed instructions on how to do this in our documentation on how to display or hide the language switcher on specific pages.
Specifically, you'll need to use the CSS :lang() Selector to target the menu item in the default language and hide it. You can find more information about the :lang() Selector here: MDN Web Docs.
Here is an example of the CSS code you could use:
.wpml-ls-menu-item:lang(en) { visibility: hidden !important; }
If this solution doesn't look relevant to your situation, please open a new support ticket in the WPML support forum.
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.
This topic is split from https://wpml.org/forums/forum/english-support/
This topic contains 1 reply, has 2 voices.
Last updated by 1 year, 6 months ago.
Assisted by: Mohamed Sayed.