Skip Navigation

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

Problem:
The client wants to change the hreflang tags generated by WPML from hreflang="zh-hans" to hreflang="zh-my" and hreflang="en" to hreflang="en-my".
Solution:
If you're experiencing this issue, we recommend you try editing the hreflang tags by navigating to WPML > Languages > Edit languages. Here, you will find a column where you can change the hreflang attribute for each language.

This solution might be irrelevant if it's outdated or not applicable to your case. 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 the issue persists, 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.

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by yukiS-2 2 years, 7 months ago.

Assisted by: Mihai Apetrei.

Author Posts
May 18, 2022 at 1:36 am #11242337

yukiS-2

I want to change hreflang tags generate by wpml from hreflang="zh-hans" to hreflang="zh-my" and hreflang="en" to hreflang="en-my". Is that possible?

The link to my site is hidden link

Looking forward for your reply. Thank you.

May 19, 2022 at 2:40 pm #11258153

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi there.

You can edit the hreflang by going to WPML > Languages > Edit languages > and you will have a column where you can change the hreflang attribute for each language.

Please check the screenshots I attached below.

Kind regards,
Mihai Apetrei

Screenshot 2022-05-19 at 17.37.09.png
Screenshot 2022-05-19 at 17.36.55.png