Skip to content Skip to sidebar

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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: Asia/Singapore (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Kor 1 year, 2 months ago.

Assisted by: Kor.

Author Posts
May 16, 2024 at 3:27 pm #15635970

Jonny Sleeman

Hi,
We have changed the default language of our site from English to Chinese (Simplified).

Now all English pages have /en/ in the URL, which is correct.

However, the links in our English Elementor templates have not been updated to the new English /en/ version.

May 17, 2024 at 8:10 am #15637882

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your understanding.

Allow me to elaborate further on this matter.

To include "/en/" in the URL for English content, it needs to be set up as the secondary language. The primary language won't display the language name in the URL slug, which is the expected behavior.

If you wish to change the default language to Chinese, please follow these steps:

1. Edit the Chinese language page and disconnect it from the previous English primary language. You can do this by following the instructions provided here: https://wpml.org/faq/how-to-disconnect-translations-from-the-default-language-page-or-post/

2. Next, reconnect the Chinese language page to your English language page and designate your Chinese page as the primary language. You can find guidance on how to do this here: https://wpml.org/faq/how-to-link-already-translated-pages/

May 17, 2024 at 9:46 am #15638652

Jonny Sleeman

Thank you.

With regards to your point:

"To include "/en/" in the URL for English content, it needs to be set up as the secondary language. The primary language won't display the language name in the URL slug, which is the expected behavior."

We already have "/en/" in the URL for English content: hidden link

This is working.

The root URL is assigned to Chinese: hidden link

All we have done is change the default language to Chinese and translate the pages.

May 17, 2024 at 2:27 pm #15640124

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Glad to know that everything is working fine now. Is there anything else that you need help with?

The topic ‘[Closed] Changing primary language of a page.’ is closed to new replies.