How can I have two logos, one for each language?

You'll need to locate the logo.png in the file called "theme.liquid", wrap it in some tags, and then upload a new logo.  Before going ahead, please make a backup of your theme.liquid file.  You can do this just by copying everything into a text file and saving it to your hard drive, or with the more in-depth backup as outlined here.

***

STEP 1
Open Template Editor > theme.liquid.  Around line 28, you'll see this:

<a href="/"><img src="{{ 'logo.png' | asset_url }}" alt="{{ shop.name }}" /></a>

Replace it with this:

<a href="/">
   <img class="lang lang1" src="{{ 'logo.png' | asset_url }}" alt="" />
    <img class="lang lang2" src="{{ 'logo2.png' | asset_url }}" alt="" />
</a>

***

STEP 2

Upload the logo for language 2, and make sure it is named 'logo2.png'.  You can upload it under Assets > Upload a new asset.
It must be named like that for it to work.

***

That's it.

This will show your MAIN logo (the one you uploaded under Theme Settings), for language 1.  Then, the new one you just added, 'logo2.png' will be shown as your logo for language 2.

That's all to it.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk