Jump to content

Languages and logos


coolcrazy

Recommended Posts

PrestaShop doesn't have language-specific logos. You'd have to edit themes/default-bootstrap/header.tpl and change line 107 (in PrestaShop v1.6.1.11) from:

<img class="logo img-responsive" src="{$logo_url}" alt="{$shop_name|escape:'html':'UTF-8'}"{if isset($logo_image_width) && $logo_image_width} width="{$logo_image_width}"{/if}{if isset($logo_image_height) && $logo_image_height} height="{$logo_image_height}"{/if}/>

to something like:

<img class="logo img-responsive" src="{$img_dir}logo-{$lang_iso}.jpg" alt="{$shop_name|escape:'html':'UTF-8'}"{if isset($logo_image_width) && $logo_image_width} width="{$logo_image_width}"{/if}{if isset($logo_image_height) && $logo_image_height} height="{$logo_image_height}"{/if}/>

Then put the language-specific logos like logo-en.jpg, logo-fr.jpg, etc in the themes/default-bootstrap/img directory. Assuming all the logos are the same size, you can also replace the width and height in the code with hardcoded values.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...