Skip to content Skip to sidebar

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

Problem:
You are trying to separate languages for different countries on your WordPress site using WPML, similar to the language switch on the Logitech website, and want to have specific domains like .ch for Switzerland and .fr for France.
Solution:
First, you need to add custom languages to your WPML setup. You can do this by following the documentation here: Editing WPML's Languages Table.
After setting up the custom languages, you should create a custom language switcher to accommodate the separate languages and countries. Guidance for creating a custom language switcher can be found here: Custom Language Switcher.
Please note that creating custom solutions might fall outside our standard support service.

If this solution does not fully 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. If further assistance is needed, please open a new support ticket.

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 3 replies, has 1 voice.

Last updated by Carlos Rojas 9 months, 1 week ago.

Assisted by: Carlos Rojas.

Author Posts
July 27, 2025 at 11:18 am #17272979

philippeB-68

Background of the issue:
I am trying to separate languages for different countries on my WordPress site using WPML. Specifically, I want to have French for France and French for Switzerland. I am looking to build a language switch similar to the one on the Logitech website (hidden link), which separates language and countries.

Symptoms:
I did not find any documentation relating to separating languages by country.

Questions:
How can I build a similar language switch like on the Logitech website, separating language and countries?
Is there a way I can have a .ch for Switzerland (CH_fr, CH_de) and a .fr for France (FR_fr)?

July 28, 2025 at 11:56 am #17274807

Dražen
Supporter

Languages: English (English )

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

Hello,

Thanks for contacting us.

While you wait for my colleague to take over the ticket, let me try to help you with the issue quickly.

You can add custom language inside WPML as per your wish, please check next docs:

- https://wpml.org/documentation/getting-started-guide/language-setup/editing-wpmls-languages-table/

Regards,
Drazen

July 31, 2025 at 6:43 am #17283763

philippeB-68

Hello,

Thanks. I checked the documentation, but this does not fully answer my question.

Thanks and best regards,
Philippe

July 31, 2025 at 8:02 am #17284000

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

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

Hello Philippe,
My name is Carlos, and I will continue working on this ticket

The documentation shared by my colleague Drazen explains how to add the custom languages to your site, for example, French for Switzerland.

After adding the custom languages, you must create a custom language switcher that meets your needs, and you can use this documentation as a guide: https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/custom-language-switcher/

Please note that custom solutions fall outside the scope of our support service.

Have an excellent day!