This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is trying to hide the language icon on their website when a page is not available in another language. They have attempted to find a CSS class to achieve this but were unsuccessful.
Solution:
We recommended setting up the language switcher instead of using a language icon. The language switcher can be configured as a List of languages with the 'Current language' option unchecked, which will prevent it from appearing on pages unavailable in other languages. Additionally, if the client is using Elementor, they can add WPML's Language Switcher using the guide at https://wpml.org/documentation/plugins-compatibility/elementor/adding-the-wpml-language-switcher-widget-to-elementor-templates-and-pages/. For further customization options, they can refer to our detailed guides on Language Switchers at https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/ and https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/custom-language-switcher/.
If this solution does not apply or is 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 at 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.