Jump to content

Add countryflag to language description in "blocklanguages.tpl"


Recommended Posts

After upgrading Prestashop I was missing the little language images (country flags) on store frontpage.

Instead only the language description was displayed.

 

I replaced the following two instances of code in /themes/default-bootstrap/modules/blocklanguages/blocklanguages.tpl

 

<span>{$language.name|regex_replace:"/\s.*$/":""}</span>

 

both with

 

<span><img src="{$img_lang_dir}{$language.id_lang}.jpg" alt="{$language.iso_code}" width="16" height="11" /> {$language.name|regex_replace:"/\s.*$/":""}</span>

 

Hope it is usefull to you.

 

post-768721-0-32847200-1395441331_thumb.png

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...