Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are developing a site and want to remove specific languages from the WPML language switcher without hiding them from the front-end or Google.
Solution:
We recommend two approaches:
1. Use the WPML settings to hide languages both on the front-end and in the language switcher. Navigate to WPML → Languages, select the languages you want to hide in the "Hide Languages" section, and click the Save button. For more details, visit hiding languages on the front-end.
2. Alternatively, you can use custom CSS to hide specific languages from the language switcher. This method allows you to keep the languages visible on the front-end and to Google.

If these solutions do not apply to your case, or if they seem 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. Should you need further assistance, 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.

This topic contains 1 reply, has 2 voices.

Last updated by Andrey 8 months, 3 weeks ago.

Assisted by: Andrey.

Author Posts
September 18, 2024 at 4:19 pm #16194731

nicklasL-3

Background of the issue:
I am developing a site and I would like to remove several languages from the language switcher. However, I do not want to hide these languages from the front-end or from Google. I couldn't find any documentation to follow.

Symptoms:
N/A

Questions:
How can I remove specific languages from the language switcher in WPML without hiding them from the front-end or from Google?

September 18, 2024 at 4:38 pm #16194820

Andrey
WPML Supporter since 06/2013

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

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

There is no option in the WPML settings to hide a language from the language switcher only. However, you can hide a language on the front end and the language switcher as well by going to the WPML → Languages page and selecting the languages you want to hide in the "Hide Languages" section. After choosing the languages, remember to click the Save button.

https://wpml.org/documentation/getting-started-guide/language-setup/hiding-languages-on-the-front-end/

Alternatively, you can attempt to achieve this by using custom CSS.