Different asset depending on language (logo)

Spadix
New Member
4 0 0

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

Replies 4 (4)

LitExtension
Shopify Partner
4860 1001 1132

Hi @Spadix

Please send your site and if your site is password protected, please send me the password. I will check it.

 

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
Spadix
New Member
4 0 0

SPADIX.AE

LitExtension
Shopify Partner
4860 1001 1132

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!

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify

Spadix
New Member
4 0 0
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="Generator" content="Microsoft Word 15 (filtered medium)" /><!--<br>/* Font Definitions */<br>@font-face<br> {font-family:"Cambria Math";<br> panose-1:2 4 5 3 5 4 6 3 2 4;}<br>@font-face<br> {font-family:Calibri;<br> panose-1:2 15 5 2 2 2 4 3 2 4;}<br>/* Style Definitions */<br>p.MsoNormal, li.MsoNormal, div.MsoNormal<br> {margin:0in;<br> font-size:11.0pt;<br> font-family:"Calibri",sans-serif;}<br>.MsoChpDefault<br> {mso-style-type:export-only;}<br>@page WordSection1<br> {size:8.5in 11.0in;<br> margin:1.0in 1.0in 1.0in 1.0in;}<br>div.WordSection1<br> {page:WordSection1;}<br><br>