Liquid, JavaScript, themes, sales channels
Hey, I Recently started translating my store to arabic from English and I'd like to change the logo when the homepage is in Arabic translation to my arabic translated logo, is there a way I could do that myself? I have been looking all over and I don't see a reference to this, I tried using the word image, asset localization and such while searching incase I was searching for the wrong thing.
Any help would be appreciated,
Thanks in advance
Hi @Spadix,
Please send your site and if your site is password protected, please send me the password. I will check it.
SPADIX.AE
Hi @Spadix,
You can refer code:
{%- capture contentForQuerystring -%}{{ content_for_header }}{%- endcapture -%}
{%- assign pageUrl = contentForQuerystring | split:'"pageurl":"' | last | split:'"' | first | split: shop.domain | last |
replace:'\/','/' |
replace:'%20',' ' |
replace:'\u0026','&'
-%}
{%- if pageUrl contains '/ar/'-%}
// show logo Arabic
{%- else -%}
// show logo English
{%- endif -%}
Hope it helps!
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024