I wanted to change the language code from chinese from /zh-hans to /cn and I went to WPML->Languages->Site Languages->Edit Languages and changed to hreflang from /zh-hans to cn.
Strangely this does not affect the link struktur and /zh-hans stays. How can I solve this?
You can NOT change a default locale.
A complete list of Locale Code: hidden link
You can check what locales can be used for Chinese.
In your case, you can create a custom language if you do not see the locale you want there and set the locale as you want but when you use a locale that is not recognized by WPML you may experience some SEO issues.
Hi, thanks for the answer. Unfortunately I did not find the /cn locale, which is quite interesting because I saw many sides with the locale /cn. Why is that not possible in this case?
The custom language method seems a good opportunity but what do you mean by SEO issues? Could you clarify this a bit more?
Unfortunately I did not find the /cn locale,
- yes, because there is recognized locale 'cn'
I saw many sides with the locale /cn.
- I think site you are seeing with /cn/ should have two site in two different directories
Why is that not possible in this case?
- because WordPress and WPML do not allow this.
The custom language method seems a good opportunity but what do you mean by SEO issues? Could you clarify this a bit more?
- google will crawl the language perfectly only if the language has a valid and recognized locale.
Regards,
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.