Jump to content

[SOLVED] Remove rollover text


Recommended Posts

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

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

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

  • 11 months later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...