hamster88 Posted October 7, 2013 Share Posted October 7, 2013 Hi im using 1.5.5 and original theme. How do i remove the hyperlink to the parent categories in the left column. I want it to still show the text for the parent category, but when u hover mouse over there is nothing to click. thanks Link to comment Share on other sites More sharing options...
vekia Posted October 8, 2013 Share Posted October 8, 2013 to disable parent links just use this: {if $node.children|@count > 0} <a>{$node.name|escape:'htmlall':'UTF-8'}</a> {else} <a href="{$node.link|escape:'htmlall':'UTF-8'}" {if isset($currentCategoryId) && $node.id == $currentCategoryId}class="selected"{/if} title="{$node.desc|strip_tags|trim|escape:'htmlall':'UTF-8'}">{$node.name|escape:'htmlall':'UTF-8'}</a> {/if} instead of <a href="{$node.link|escape:'htmlall':'UTF-8'}" {if isset($currentCategoryId) && $node.id == $currentCategoryId}class="selected"{/if} title="{$node.desc|strip_tags|trim|escape:'htmlall':'UTF-8'}">{$node.name|escape:'htmlall':'UTF-8'}</a> in category-tree-brach.tpl file Link to comment Share on other sites More sharing options...
hamster88 Posted October 8, 2013 Author Share Posted October 8, 2013 (edited) http://www.sophielam.co.uk/index.php Hi i did that and its still the same. I can still click on Fashion accessories and homeware i have 2 category tree branch.tpl files, one is in themes/default/modules/blockcategory the other in themes/default Edited October 8, 2013 by hamster88 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 8, 2013 Share Posted October 8, 2013 clear browser cache and turn on force compilation. moreover, make sure that you changed correct file: themes/default/modules/blockcategory/category-tree-branch.tpl Link to comment Share on other sites More sharing options...
hamster88 Posted October 8, 2013 Author Share Posted October 8, 2013 (edited) is it .php or .tpl ? im guessing tpl cos there is no pho files in there. I tried editing that file it still didnt work. turned forced compilation on too. whats the difference between the 2 files i got ? the one in themes/default and the on in themes/default/modules/blockcategory ??? you also linked to this in my other thread, it wasnt the same thing im referring to. I was referring to the link under the blue bars in the middle column of the page. I just made the text white so u cant see it. Edited October 8, 2013 by hamster88 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 8, 2013 Share Posted October 8, 2013 hello my bad, it is .tpl file. i unbloced your second thread you shouldn't have file: /themes/default/category-tree-branch.tpl if you've got it - it isn't used anywhere. correct file: /themes/default/modules/blockcategories/category-tree-branch.tpl can you show me what you changed in this file? i checked my code that i pasted above and it works well. Link to comment Share on other sites More sharing options...
hamster88 Posted October 8, 2013 Author Share Posted October 8, 2013 When i do as you instructed, my web site dies and i cant open anything so i put it back to before. this is my category-tree-branch.tpl I also looked in my original downloaded prestashop files and it has the cat tree branch and others in themes/default/ <li {if isset($last) && $last == 'true'}class="last"{/if}>{if $node.children|@count > 0} <a>{$node.name|escape:'htmlall':'UTF-8'}</a>{else} <a href="{$node.link|escape:'htmlall':'UTF-8'}" {if isset($currentCategoryId) && $node.id == $currentCategoryId}class="selected"{/if} title="{$node.desc|strip_tags|trim|escape:'htmlall':'UTF-8'}">{$node.name|escape:'htmlall':'UTF-8'}</a> {if $node.children|@count > 0} <ul> {foreach from=$node.children item=child name=categoryTreeBranch} {if $smarty.foreach.categoryTreeBranch.last} {include file="$branche_tpl_path" node=$child last='true'} {else} {include file="$branche_tpl_path" node=$child last='false'} {/if} {/foreach} </ul> {/if}</li> Link to comment Share on other sites More sharing options...
hamster88 Posted October 10, 2013 Author Share Posted October 10, 2013 (edited) ok thanks i got it to work now, i missed the {/if} at the end doh. is it possible to stop it highlighting when hovering or changing the mouse to the hand cursor ? Edited October 10, 2013 by hamster88 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 10, 2013 Share Posted October 10, 2013 hello thank you for information that it works im going to mark this thread as[solved] with regards, Milos 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