Jump to content

No Flag icon on languages in the new Prestashop 1.6?


ALMAJ

Recommended Posts

In the Front Office there is no Flag icon on languages in the new Prestashop 1.6

how to enable this feature that was on all previous prestashop versions ?

 

Regards

hello

 

any chance to see it live?

it isnt, definitely, default prestashop behaviour

Link to comment
Share on other sites

hello

 

any chance to see it live?

it isnt, definitely, default prestashop behaviour

Sure send me a PM with your ip

 

"it isnt, definitely, default prestashop behaviour"

you mean that is the default behavior of the new prestashop 1.6 not having an icon flag on languages?

if so how to hack it to have icons based on ISO langs?

 

regards

Edited by majority (see edit history)
Link to comment
Share on other sites

It was for FO in previous prestashop versions. I'm not sure about 1.6

Yes it was and it is for FO and BO but in the new prestashop 1.6 theme there is no icon flag on FO,

only your country text is displayed, i now must find a way to display an icon instead of text.

 

Prestashop 1.6 new responsive theme design mobile first, is using Font Awesome for the icons,

this means removing all raster icons, i understand that the web's future is going to be vector instead of raster

but for now the vector based Font Awesome icons are monochrome (only one color) we cannot do a lot with that...

 

regards

Link to comment
Share on other sites

  • 4 weeks later...

Well how about adding a vector flag to the FTP and setting it as a language display item? Then you wont need to worry about monochrome font awesome anymore. I am not a coder so I don't know the way to do it but it should be ok for someone who knows what should be changed

Link to comment
Share on other sites

  • 8 months later...

hello,
if the theme for this is still relevant - I found the solution http://www.themebooster.com/language-flags:

 

  1. Open blocklanguages.tpl located inside your-online-installation/themes/your-theme/modules/blocklanguages/
    Note: if folder called blocklanguages does not exist in your theme directory, copy this folder located inside your-online-installation/themes/default-bootstrap/modules/blocklanguages/ and paste inside your-online-installation/themes/your-theme/modules/
  2. Use your favourite Text editor and open blocklanguages.tpl
  3. Change twice (row 31 and 46)
    {$language.name|regex_replace:"/\s.*$/":""}
  4. with
    <img alt="{$language.iso_code}" height="11" span="" src="{$img_lang_dir}{$language.id_lang}.jpg" width="16" />
  5. Save and overwrite

 

 

I replaced the code as follows:

<span><img alt="{$language.iso_code}" height="11" span="" src="{$img_lang_dir}{$language.id_lang}.jpg" width="16" /> {$language.name|regex_replace:"/\s.*$/":""}</span>
  • Like 5
Link to comment
Share on other sites

×
×
  • Create New...