Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 - -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 3 replies, has 0 voices.

Last updated by Noman 3 months ago.

Assisted by: Noman.

Author Posts
April 3, 2025 at 2:33 pm #16893033

Will Munroe

Background of the issue:
I am building a Divi site in English and French. The design requires a language switcher that shows a link as 'EN' when the site is viewed in French or 'FR' when the site is viewed in English, instead of using flags.

Symptoms:
I could not find the relevant documentation for creating a custom language switcher without using flags.

Questions:
Is it possible to create a language switcher in Divi that shows 'EN' or 'FR' instead of flags?
Could you please direct me to the relevant documentation for creating a custom language switcher in WPML?

April 3, 2025 at 4:08 pm #16893878

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. You should be able to achieve it by following the below steps:

1. Go to the WPML >> Languages page.
2. Click on the Edit Languages link as you can see in the attached screenshot.
3. Add language codes (EN, FR, etc.) in Translation text boxes as you can see in the attached screenshot.
4. Press the Save button.
5. Click on the Pencil icon to open up the “Language Switcher Settings” and uncheck the “Flag” option and enable the “Native language name” option and press the Save button. (Screenshot attached)
6. Clear all sorts of site/server/CDN cache.

If you need to add language switcher other than site menus, you can add code/shortcode to that position, please go to WPML >> Languages > Custom language switcher and customise it according to your needs then please use the below shortcode in header template to display language switcher on a specific position:

[wpml_language_selector_widget]

Here are doc for more details:
https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/#style-language-switcher
https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/custom-language-switcher/#the-settings-part

Please let me know if this resolves your issue or if you need further assistance.

Thank you

Edit_languages_Step_1.jpg
Add_country_code_in_Translation_text_boxes.jpg
Edit_language_switcher_settings_1.jpg
Edit_menu_language_switcher_2.jpg
April 6, 2025 at 1:45 pm #16901327

Will Munroe

Please keep this thread open for now. I will not have time to look at this until 2025-04-09

Thank you so much

April 6, 2025 at 3:26 pm #16901551

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Sure, no problem!

I’ll keep this thread open. Feel free to get back to me anytime after 2025-04-09.

Thank you

The topic ‘[Closed] Creating custom language switcher in Divi’ is closed to new replies.