I’ve recently setup a shop in english, traditional chinese and simplified chinese.
Everything is going great in hiding translating and also hiding chinese pictures on the english lanaguage pages.
However, I can’t seem to hide the english pictures on the chinese pages no matter what..
Ive tried the chinese tradition codes “zh” “zh_tw” “zh_cn” small letter and capitals.. also tried other possible codes that might be used for chinese like “zh_t” (traditional) and “zh_s” for simplified… but nothing seems to work for hiding the english sections in the chinese pages.
Heres a copy of the code - the top part for ‘en’ works well. The english pages are ok. So when the locale goes to “zh_tw” nothing works.
The issue might be with the locale code you’re using in the second condition. The correct locale code for Traditional Chinese in Shopify is zh-TW, and for Simplified Chinese, it’s zh-CN.
AHHH thank you so much… such a simple solution, and its weird I’ve checked the Shopify coding for language locales… and it says its ZH_TW and ZH_CN with an underscore , is it to do with the smaller/upper case as well?
Yes I think it’s case sensitive too so for safe side, you can make sure of the smaller/upper case as well. Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.