Jump to content

[SOLVED]How to change homepage logo refering to language


Recommended Posts

Hi all !

I would like to have two possibilities with languages and homepage logo like this :
- when customer chooses language 1, the homepage displays homepage logo1
- when customer chooses language 2, the homepage displays homepage logo2

How can I do this ?

Thank you for your next help !!
Bye

Link to comment
Share on other sites

  • 4 weeks later...

Hi albundy11,

I had the same problem as you, and since prestashop does not give the possibility to give each language a logo you must do it manually.
just make this change in the page header.tpl of your theme:




and you rename the logos: logo_en.jpg for the English version, logo_fr.jpg for the French version, ... so ...

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

Hi albundy11,

I had the same problem as you, and since prestashop does not give the possibility to give each language a logo you must do it manually.

just make this change in the page header.tpl of your theme:

[b]	[url="{$base_dir}"][img={$img_ps_dir}logo_{$lang_iso}.jpg][/url][/b]

and you rename the logos: logo_en.jpg for the English version, logo_fr.jpg for the French version, ... so ...

i need that code forum erased.... to change header.tpl . How can you tell me what you were writing before erase???

Link to comment
Share on other sites

  • 5 months later...
  • 2 weeks later...

My solution to this problem was to copy editorial.tpl to: my_theme/modules/editorial and overwrite/change:

 

<img src="{$link->getMediaLink($image_path)}"

 

to:

 

<img src="{$img_dir}homepage_logo_{$lang_iso}.jpg"

 

Then I placed the images in my themes image directory and renamed them: hompage_logo_en.jpg, homepage_logo_es.jpg etc.

Link to comment
Share on other sites

I realise I wasn’t answering directly to the subject. Actually I haven’t changed the sites logo, just the image in the editorial block that Prestashop for some reason calls Home Page Logo. I will keep in mind that the sites logo is also used for the email templates as I changed logo.jpg to logo.png for transparency.

 

Anyway just wanted to comment that Prestashop already does change images referring to the current language with its “On Sale” image (Line 247 in product.tpl found in the theme directory).

Link to comment
Share on other sites

  • 2 months later...
×
×
  • Create New...