TheWolf Posted February 10, 2011 Share Posted February 10, 2011 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 More sharing options...
sendul Posted February 11, 2011 Share Posted February 11, 2011 Edit blocklanguages.tpl on directory modules-blocklanguanges, About line 41 there are the image size width and height and dont forget to upload your new image at directory img-ldefault image for language using 16x11 hope that helps Link to comment Share on other sites More sharing options...
TheWolf Posted February 11, 2011 Author Share Posted February 11, 2011 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 More sharing options...
sendul Posted February 11, 2011 Share Posted February 11, 2011 Please define your image height at languanges_block_top to make them horizontal Link to comment Share on other sites More sharing options...
TheWolf Posted February 12, 2011 Author Share Posted February 12, 2011 Awesome! 10x!I added "height: Xpx" to the languages_block_top and it worked perfectly!Is there a Prestashop coding guide anywhere so i won't ask every second a stupid question? Link to comment Share on other sites More sharing options...
sendul Posted February 12, 2011 Share Posted February 12, 2011 i don't use any prestashop coding guide.. if you want to start... try w3schools and then go to smarty page for the manualhope that helps Link to comment Share on other sites More sharing options...
AlmeraGTI Posted March 29, 2011 Share Posted March 29, 2011 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 More sharing options...
sendul Posted March 29, 2011 Share Posted March 29, 2011 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 More sharing options...
AlmeraGTI Posted March 29, 2011 Share Posted March 29, 2011 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 SendulBut 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 More sharing options...
sendul Posted March 29, 2011 Share Posted March 29, 2011 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 More sharing options...
silki Posted April 26, 2011 Share Posted April 26, 2011 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 More sharing options...
sendul Posted April 26, 2011 Share Posted April 26, 2011 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now