maycontainweasel Posted June 7, 2011 Share Posted June 7, 2011 Hi EveryoneDoes anyone know of a way to use the shop logo as a PNG instead of a JPG?I've changed the Code in the Header tpl to use the extension png but this doesn't seem to work?is there a particular way this needs to be done? is there a particular way this needs to be done? please can someone help me.. Also, when i drag the header.tpl file into dreamweaver, dreamweaver tells me there is a coding error,but i'm using the standard 1.4.1 header tpl with the latest prestashop.. i think it wont let me change the logo extension to png until the coding error is sorted out..It doesn't like this line for some reason? is this the same for everyone? var priceDisplayPrecision = {$priceDisplayPrecision*$currency->decimals}; This is my header.tpl <html > <head> <title>{$meta_title|escape:'htmlall':'UTF-8'}</title> {if isset($meta_description) AND $meta_description} <meta name="description" content="{$meta_description|escape:html:'UTF-8'}" /> {/if} {if isset($meta_keywords) AND $meta_keywords} <meta name="keywords" content="{$meta_keywords|escape:html:'UTF-8'}" /> {/if} <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <meta name="generator" content="PrestaShop" /> <meta name="robots" content="{if isset($nobots)}no{/if}index,follow" /> <link rel="icon" type="image/vnd.microsoft.icon" href="{$img_ps_dir}favicon.ico?{$img_update_time}" /> <link rel="shortcut icon" type="image/x-icon" href="{$img_ps_dir}favicon.ico?{$img_update_time}" /> [removed] var baseDir = '{$content_dir}'; var static_token = '{$static_token}'; var token = '{$token}'; var priceDisplayPrecision = {$priceDisplayPrecision*$currency->decimals}; var priceDisplayMethod = {$priceDisplay}; var roundMode = {$roundMode}; [removed] {if isset($css_files)} {foreach from=$css_files key=css_uri item=media} <link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" /> {/foreach} {/if} {if isset($js_files)} {foreach from=$js_files item=js_uri} [removed][removed] {/foreach} {/if} {$HOOK_HEADER} </head> <body {if $page_name}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if}> {if !$content_only} {if isset($restricted_country_mode) && $restricted_country_mode} {l s='You cannot place a new order from your country.'} {$geolocation_country} {/if} <!-- Header --> {$HOOK_TOP} <!-- Left --> {$HOOK_LEFT_COLUMN} <!-- Center --> {/if} Link to comment Share on other sites More sharing options...
wolfstores.com Posted June 7, 2011 Share Posted June 7, 2011 Hi,After you make a change in the code you need to force compile. In prestashop go to "preferences", then "performance", then set "force compile" to yes and save.This should get the png to show up with the new code you put in. Once it is working remember to turn off force compile.Best regards,Tim Link to comment Share on other sites More sharing options...
maycontainweasel Posted June 8, 2011 Author Share Posted June 8, 2011 Yes that did the trick! Thank you so much man.. i really appreciate the help!What does the force compile do? does it just force prestashop to reload everything basically?Thanks again man! Link to comment Share on other sites More sharing options...
wolfstores.com Posted June 8, 2011 Share Posted June 8, 2011 Hey,Great to hear its working Yep that is pretty much what is does, its very useful when your editing the code.Best regards,Tim 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