Skip to content Skip to sidebar

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 contains 1 reply, has 0 voices.

Last updated by Andrey 1 year ago.

Author Posts
November 20, 2024 at 2:15 pm #16425114

Albert

Background of the issue:
I want to add a language switcher in my menu on my site hidden link. It should display the full list of available languages when translations are available for a specific page. When I click on the current language, a sub-menu should open with the other available languages for that page. If translations are not available, the current language should also be removed.

Can you help me fixing this?

Symptoms:
No specific issue or error message mentioned.

Questions:
How can I configure the language switcher to show only available translations?
How do I remove the current language from the menu when translations are not available?

November 20, 2024 at 4:35 pm #16425748

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

While one of my teammates addresses your ticket, I will provide you with initial debugging steps.

WPML allows you to add a language switcher to your website’s menu, as a widget, or in the footer. You can also incorporate flags, display languages in their native names, and apply custom styling.

If you activate the "Skip language" option in WPML → Languages → Language Switcher Options, the switcher will only show the languages available on the current page.

https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/

The topic ‘[Closed] Show the current language only when translations are available’ is closed to new replies.