martinc Posted October 17, 2010 Share Posted October 17, 2010 Hi, A simple question, but I haven't been able to find the answer.How do I remove the rollover text from CATEGORIES ? (the text that appears when you put your pointer on one of the categories)Thanks Link to comment Share on other sites More sharing options...
Prestafan1234 Posted October 17, 2010 Share Posted October 17, 2010 Edit your categories and remove the text in the field description. Link to comment Share on other sites More sharing options...
martinc Posted October 17, 2010 Author Share Posted October 17, 2010 Edit your categories and remove the text in the field description. I don't want to remove the text in the field description as it should still be there.. There must be another way? Link to comment Share on other sites More sharing options...
Prestafan1234 Posted October 17, 2010 Share Posted October 17, 2010 I don't want to remove the text in the field description as it should still be there.. There must be another way? Not to my knowledge - unless you can remove it from the module in some way. Why don't you want to remove the text? Link to comment Share on other sites More sharing options...
martinc Posted October 17, 2010 Author Share Posted October 17, 2010 Because I have a lot of text there, so when you roll over your mouse over a categor it basically 'shadows' the rest.. Link to comment Share on other sites More sharing options...
Prestafan1234 Posted October 17, 2010 Share Posted October 17, 2010 What is the text for? I doubt it has much SEO value - what do you use it for and where? Link to comment Share on other sites More sharing options...
martinc Posted October 17, 2010 Author Share Posted October 17, 2010 What is the text for? I doubt it has much SEO value - what do you use it for and where? Lets say I have a category called 'protein powder' here I write about protein powder in general (history, benefits etc) under that I have different products. In the products the description is more relevant to the specific product. Link to comment Share on other sites More sharing options...
rocky Posted October 18, 2010 Share Posted October 18, 2010 Change line 2 of modules/blockcategories/category-tree-branch.tpl (in PrestaShop v1.3.2) from: <a href="{$node.link|escape:html:'UTF-8'}" {if $node.id == $currentCategoryId}class="selected"{/if} title="{$node.desc|escape:html:'UTF-8'}">{$node.name|escape:html:'UTF-8'} to: <a href="{$node.link|escape:html:'UTF-8'}" {if $node.id == $currentCategoryId}class="selected"{/if}{* title="{$node.desc|escape:html:'UTF-8'}"*}>{$node.name|escape:html:'UTF-8'} This will remove the tooltip from the categories, while keeping the description on the category pages. Link to comment Share on other sites More sharing options...
martinc Posted October 18, 2010 Author Share Posted October 18, 2010 Hi Rocky, Thank you for your answer.I have done as suggested and the file category-tree-branch.tpl now looks as below. Do you have any other input? > <a href="{$node.link|escape:html:'UTF-8'}"class="selected" title="{$node.desc|escape:html:'UTF-8'}">{$node.name|escape:html:'UTF-8'} {if $node.children|@count > 0} </pre> <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> <br> {/if}<br Link to comment Share on other sites More sharing options...
rocky Posted October 18, 2010 Share Posted October 18, 2010 It doesn't look like you changed anything. You were supposed to put {* before the title and *} after the title so that it is ignored. Then the tooltip won't be displayed. Link to comment Share on other sites More sharing options...
martinc Posted October 19, 2010 Author Share Posted October 19, 2010 Sorry Rocky,For some reason it's not showing the code correctly, I have attatched a screenshot instead, I 'only' have prestashop 1.3.0 installed, could this be the reason why its not working as it should? Link to comment Share on other sites More sharing options...
rocky Posted October 20, 2010 Share Posted October 20, 2010 You've changed it correctly, so it should work. Try changing category-tree-branch.tpl in your theme's directory too. Link to comment Share on other sites More sharing options...
martinc Posted October 20, 2010 Author Share Posted October 20, 2010 Hi Rocky,Thank you for your help, I solved it by also changingmodules\blockcategoriesaccordion\category-tree-branch.tpl as well Link to comment Share on other sites More sharing options...
Didrik70 Posted October 9, 2011 Share Posted October 9, 2011 Please help. Trying to do this in 1.4.4 but I have the following code: <li {if isset($last) && $last == 'true'}class="last"{/if}> <a href="{$node.link}" {if isset($currentCategoryId) && ($node.id == $currentCategoryId)}class="selected"{/if} title="{$node.desc|escape:html:'UTF-8'}">{$node.name|escape:html:'UTF-8'}</a> {if $node.children|@count > 0} <ul> {foreach from=$node.children item=child name=categoryTreeBranch} {if isset($smarty.foreach.categoryTreeBranch) && $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...
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