swifftyb Posted April 25, 2011 Share Posted April 25, 2011 Can anyone help me?Im having trouble with editing my header and footer tpl files in V1.4.I cant get my logo to change to a .png in my header?And i cant seem to re-write the links in my footer tpl?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?{$time}" /> <link rel="shortcut icon" type="image/x-icon" href="{$img_ps_dir}favicon.ico?{$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 $thmskinsblack} <link rel="stylesheet" type="text/css" href="{$content_dir}modules/thmskins/css/black.css" media="{$media}"> {else} {/if} {if $thmskinswhite} <link rel="stylesheet" type="text/css" href="{$content_dir}modules/thmskins/css/white.css" media="{$media}"> {else} {/if} {if $thmskinsblue} <link rel="stylesheet" type="text/css" href="{$content_dir}modules/thmskins/css/blue.css" media="{$media}"> {else} {/if} [removed][removed] [removed][removed] {literal} [removed] var $j = jQuery.noConflict(); $j(function(){ $j('.navigation li a') .css( {backgroundPosition: "0 0"} ) .mouseover(function(){ $j(this).stop().animate({backgroundPosition:"(-250px 0)"}, {duration:400}) }) .mouseout(function(){ $j(this).stop().animate({backgroundPosition:"(-300px 0)"}, {duration:200, complete:function(){ $j(this).css({backgroundPosition: "0 0"}) [spam-filter]) }) }); [removed] {/literal} {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 isset($ad) && isset($live_edit)} {include file="$tpl_dir./live_edit.tpl"} {/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...
dazfx Posted April 25, 2011 Share Posted April 25, 2011 turn of caching Link to comment Share on other sites More sharing options...
Mr. Lent Posted April 25, 2011 Share Posted April 25, 2011 <img class="logo" src="http://www.thekingsunit.co.uk/img/logo4.png" alt="{$shop_name|escape:'htmlall':'UTF-8'}"width="{$logo_image_width}"height="{$logo_image_height}"> </a>may be like that: <img class="logo" src="img/logo4.png" alt="{$shop_name|escape:'htmlall':'UTF-8'}"width="{$logo_image_width}"height="{$logo_image_height}"> </a>i have same problem, and i change like that and works.. Link to comment Share on other sites More sharing options...
swifftyb Posted April 25, 2011 Author Share Posted April 25, 2011 thanks Link to comment Share on other sites More sharing options...
ChrisLNZ Posted April 27, 2011 Share Posted April 27, 2011 you also need to do a forced compile after changing tpl files Link to comment Share on other sites More sharing options...
Dark-Graphics Posted May 1, 2011 Share Posted May 1, 2011 Where do you do a forced compile? I need to edit some .tpl files and I dont want to break my sites functionality. Link to comment Share on other sites More sharing options...
Housy Posted May 11, 2011 Share Posted May 11, 2011 Under Preferences -> PerformanceCheers 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