This thread is resolved. Here is a description of the problem and solution.
Problem:
The client needs to add sub-languages in the WPML language switcher and display the slug as desired, such as
https://w****apps.com/en/can/
when clicking on Canada.
Solution:
We explained that WPML does not support sub-languages like */en/europe/* or */en/can/* as they are considered pages within English, not new languages.
We offered two solutions:
Option 1: Keep them as Pages/Categories
Create them as pages or categories within the English site and translate them accordingly.
Option 2: Use Language Variants
For different English versions (Canada, UK, US), WPML allows the creation of custom languages, which are treated as separate languages and not nested under /en/. For example:
/en-ca/ → English (Canada)
/en-gb/ → English (UK)
/en-us/ → English (US)
To add a custom language in WPML, follow these steps after a full site backup:
- Go to WPML >> Languages >> Site Languages
- Click on the Edit Languages link
- Add a new language (example: English (Canada), code en-ca)
For more details, please refer to the following documentation:
If this solution does not apply to your case, or if it seems 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. 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.