Jump to content

How to change Language Flag sizes?


Recommended Posts

Hello All!

First time here,
Installed Prestashop and now i'm messing with it.
I have some questions about editing the Template but i'm of course searching for answers in the forum first.
One thing I haven't found is how to change the size of the Language Flag images.
I want to make them bigger.
I tried messing around in the Global.css around line 715 and did not find anything helpful.
would very much like your help,
Thank you!

Link to comment
Share on other sites

Thank you very much, the image resizing works.
The thing is that when i make them larger it makes them go out of line and become vertical instead of horizontal.
I tried changing the languages_block_top and giving it more px but no go. Any idea?

Link to comment
Share on other sites

  • 1 month later...

I am starting to change the theme of a new instalation of Prestashop 1.4 Final for my shop to look like the old 1.3 version, in changing the language.tpl and images "ftp" and the positioning of the flag they stay the same size 16x11 and I want them 30x20, link below.

http://www.puntomatica.com/v2/

Wow 1.4 version is way more complicated to adapt than 1.3 but I do like it,

Link to comment
Share on other sites

hai AlmeraGTI,

You can try this for changing size of your languange image to 30x20. open blocklanguanges.tpl ( prestashop directory - modules - blocklanguanges ).







if nothing happens on frontpage, try to force recompile smarty from BO.


Thx

Link to comment
Share on other sites

Thanks Sendul. Yeah I had already changed the code but the Flags where not going up to size, with you other suggestion "Smarty" when I put the Smarty 2 option on the flags do go 30x20, is this what you mean by "force recompile smarty from BO" or is there another option that I have not come across!!

SOVELD Found the option Preferences tab / Performances, and it´s done the trick

Thank you Sendul

But could you explain what this did in laymans terms, is this some sort of chash the reason why I ask is that in my 1.3.4 version I have a Fatal error (Address -> dni is empty) that I can´t resolve.
http://www.prestashop.com/forums/viewthread/97967/#404333

Link to comment
Share on other sites

Hello AlmeraGTI,

Try to use smarty3 again and then Force compile smarty3, login to BO and go to preferences and click performance.

You can see force compile at smarty section and click save.This will compile new blocklanguanges.tpl at smarty folder...



hope that helps

Link to comment
Share on other sites

  • 4 weeks later...

Hallo,
i would like to change the size of the language block as well but it ends at line 22 (version 1.2.5)
I have also an error message in the line $(this).css('opacity', 1);

Do you see where the problem is?

<!-- Block languages module --><html><body>

       {foreach from=$languages key=k item=language name="languages"}

               {if $language.iso_code != $lang_iso}getLanguageLink($language.id_lang, $language.name)}" title="{$language.name}">{/if}

               {if $language.iso_code != $lang_iso}{/if}

       {/foreach}


[removed]
   $('ul#first-languages li:not(.selected_language)').css('opacity', 0.3);
   $('ul#first-languages li:not(.selected_language)').hover(function(){ldelim}
       $(this).css('opacity', 1);
   {rdelim}, function(){ldelim}
       $(this).css('opacity', 0.3);
   {rdelim});
[removed]
<!-- /Block languages module -->

</body></html>




Thanks a lot!!


Silke

Link to comment
Share on other sites

hello silki,

maybe you have modification template because there is different code with default prestashop 1.2.5 that i got.

original blocklanguanges.tpl from prestashop 1.2.5, this code is different

{foreach from=$languages key=k item=language name="languages"}

               {if $language.iso_code != $lang_iso}getLanguageLink($language.id_lang, $language.name)}" title="{$language.name}">{/if}

               {if $language.iso_code != $lang_iso}{/if}

       {/foreach}




to change the size of block languanges on prestashop 1.2.5, you can edit "width" and "height" of image.

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