Skip Navigation

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

Problem:
The client needs to set up a language switcher displaying only the language codes 'Ru En Ro' without flags or full names, as shown in their screenshot.
Solution:
First, ensure that the languages are set up in WPML by navigating to WPML > Languages. If not present, add new languages at WPML > Languages > Add new language. Detailed steps can be found in the documentation here: Editing WPML's Languages Table.
Next, create a Menu Language Switcher by going to WPML > Languages > Menu Language Switcher > Create new language switcher and assign it to the desired menu. Make sure the current page is translated into the languages you want to display; otherwise, they won't appear in the switcher.
To display only the language codes 'Ru En Ro', navigate to WPML > Languages > Edit languages and modify the language names accordingly. Then, adjust the settings in WPML > Languages > Menu Language Switcher or Footer Language Switcher to hide flags and show only the language names.
For more detailed instructions on setting up the language switcher, visit: Language Switcher Options.

If this solution does not resolve your issue or seems outdated, we 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.

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Mihai Apetrei 5 months, 1 week ago.

Assisted by: Mihai Apetrei.

Author Posts
June 8, 2024 at 5:10 pm #15718599

denM

I need to set up a language switcher like in the screenshot.
How can I do this?
How to display Ru En Ro?

ScreenShot_20240608200321.jpeg
June 8, 2024 at 8:15 pm #15718662

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi there.

Please take a look here:
https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/#add-a-language-switcher-to-a-menu-footer-or-widget

What you need is to create a Menu language switcher, and that can be done from WPML > Languages > Menu Language Switcher > Create new language switcher there and assign it to your correct menu.

In order for any extra languages to show up in the language switcher menu, you need to make sure that you have those languages already set up in WPML > Languages (if you don't have them set up already, you can add new languages to the site from WPML > Languages > Add new language - documentation - https://wpml.org/documentation/getting-started-guide/language-setup/editing-wpmls-languages-table/), and then you need to make sure that the current page that you are visiting from the front-end has already been translated into the languages that you want.

The language switcher will show only the languages in which there is existing translation for the current page that is being visited. If the current page that you are visiting has only been created in the default language and there are no existing translations of that page for other languages, then only the default language will show up in the language switcher menu.

I hope that you will find this information helpful. 🙂

Please let me know how things go.

Mihai Apetrei

June 9, 2024 at 12:58 am #15718728

denM

Sorry for the misunderstanding. I need the symbols Ru En Ro.
Exactly as I wrote. No flags, no full names, just Ru En Ro.

June 10, 2024 at 8:19 am #15720559

Mihai Apetrei
Supporter

Languages: English (English )

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

Got it, no worries. Thank you for explaining.

You should be able to go to WPML > Languages > Edit languages > and change the language names exactly to what you want.

Also, in WPML > Languages > Menu Language Switcher (if you set the language switcher to your menu) or Footer Language Swither (if you set the language switcher to footer), you can edit the settings for it and set it so that it doesn't show the flags, only the language names.

I hope that you will find this information helpful. 🙂