digiconlive Posted November 7, 2012 Share Posted November 7, 2012 I have prestashop 1.5.2 installed and using a customized template. What I am trying to do is remove the link that is attached to the main page logo. I have followed the instructions and each time try the page gets all messed up and will not aline. Also, I have been forcing compile with cache turned off. Again I have followed the instructions to delete the following line: <a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}"> Below is the code I am trying to change for my header.tpl <body {if isset($page_name)}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if} class="{if $hide_left_column}hide-left-column{/if} {if $hide_right_column}hide-right-column{/if}"> {if !$content_only} {if isset($restricted_country_mode) && $restricted_country_mode} <div id="restricted-country"> <p>{l s='You cannot place a new order from your country.'} <span class="bold">{$geolocation_country}</span></p> </div> {/if} <div id="page" class="container_9 clearfix"> <div class="footer-bg"> <div class="top_curve"> <div class="centerbg"> <!-- Header --> <div id="header" class="grid_9 alpha omega"> <a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}"> <img class="logo" src="{$logo_url}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} /> </a> <div id="header_right" class="grid_6 omega"> {$HOOK_TOP} </div> </div> <div id="columns" class="grid_9 alpha omega clearfix"> <!-- Left --> <div id="left_column" class="column grid_2 alpha"> {$HOOK_LEFT_COLUMN} </div> <!-- Center --> <div id="center_column" class=" grid_5"> <div class="center_top"> <div class="center_mid"> {/if} Link to comment Share on other sites More sharing options...
MEG Venture Posted November 7, 2012 Share Posted November 7, 2012 Why don't you try to put # instead of {$base_dir}? Link to comment Share on other sites More sharing options...
digiconlive Posted November 7, 2012 Author Share Posted November 7, 2012 So replace the following: {$base_dir} with: # Is that right? Link to comment Share on other sites More sharing options...
MEG Venture Posted November 7, 2012 Share Posted November 7, 2012 Correct Link to comment Share on other sites More sharing options...
digiconlive Posted November 7, 2012 Author Share Posted November 7, 2012 Ok going to try it now Link to comment Share on other sites More sharing options...
digiconlive Posted November 7, 2012 Author Share Posted November 7, 2012 Ok the issue with doing it that way is when you put the cursor over the image, it turns into a hand suggesting there is a link. HELP! LOL Link to comment Share on other sites More sharing options...
MEG Venture Posted November 7, 2012 Share Posted November 7, 2012 (edited) So you don't want the hand cursor. Did you try to put <img class="logo" src="{$logo_url}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} /> instead of <a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}"> <img class="logo" src="{$logo_url}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} /> Edited November 7, 2012 by Caglar (see edit history) Link to comment Share on other sites More sharing options...
digiconlive Posted November 7, 2012 Author Share Posted November 7, 2012 I will give that a shot when I get back. I really want to thank you Caglar for taking time out of your day to help me. Link to comment Share on other sites More sharing options...
digiconlive Posted November 7, 2012 Author Share Posted November 7, 2012 Caglar, Yes I did try it that way. This was how I was trying it in the first place. The odd thing is when you remove the line: <a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}"> Everything goes to crap. The images no longer line up etc... I cant believe this isnt simple Link to comment Share on other sites More sharing options...
math_php Posted November 9, 2012 Share Posted November 9, 2012 Hi Yes it is not that simple, try this : <img id="header_logo" class="logo" src="{$logo_url}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} /> I am not good at css, but your image was embeded in a '<a>' link, and this link was targeted with css to get a good display. With the added id, css will apply directly on img. Tell us if it is ok. Best regards 1 Link to comment Share on other sites More sharing options...
safa Posted November 12, 2012 Share Posted November 12, 2012 Hi Yes it is not that simple, try this : <img id="header_logo" class="logo" src="{$logo_url}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} /> I am not good at css, but your image was embeded in a '<a>' link, and this link was targeted with css to get a good display. With the added id, css will apply directly on img. Tell us if it is ok. Best regards will be work this code. only delete <a> tag and add id="header_logo" to logo <img> tag.. Link to comment Share on other sites More sharing options...
tdr170 Posted November 12, 2012 Share Posted November 12, 2012 This is actually very simple edit header.tpl and delete the lines in red from the code below. (and only the red) In my 1.5.2 these are lines 76 and 78 I tedted this before posting and guarantee this works. Be sure to turn on force compile and turn cach off when editing tpl files. These red lines create the link the <img class -- line loads the header logo. <a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}"> <img class="logo" src="{$logo_url}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} /> </a> <body {if isset($page_name)}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if} class="{if $hide_left_column}hide-left-column{/if} {if $hide_right_column}hide-right-column{/if}"> {if !$content_only} {if isset($restricted_country_mode) && $restricted_country_mode} <div id="restricted-country"> <p>{l s='You cannot place a new order from your country.'} <span class="bold">{$geolocation_country}</span></p> </div> {/if} <div id="page" class="container_9 clearfix"> <div class="footer-bg"> <div class="top_curve"> <div class="centerbg"> <!-- Header --> <div id="header" class="grid_9 alpha omega"> <a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}"> <img class="logo" src="{$logo_url}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} /> </a> <div id="header_right" class="grid_6 omega"> {$HOOK_TOP} </div> </div> <div id="columns" class="grid_9 alpha omega clearfix"> <!-- Left --> <div id="left_column" class="column grid_2 alpha"> {$HOOK_LEFT_COLUMN} </div> <!-- Center --> <div id="center_column" class=" grid_5"> <div class="center_top"> <div class="center_mid"> {/if} 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