Jump to content

[solved] Suppress a link "title" in the Categories block left


Recommended Posts

When mouse over a link of the Categories block left we can see pop up frame with information from categories description (see picture). If we have long description - we get big size frame...

 

It is in the title of the link:

 

<div id="categories_block_left" class="block">
<h4>Categories</h4>
<div class="block_content">
<ul class="tree dynamized" style="display: block;">
<li>
<li>
<a class="selected" title="Crank it up to 11 and join the gadget revolution!" href="http://demo-store.prestashop.com/en/6-electronics">Electronics</a>
</li>

 

How to switch a pop up frame off or to get the title empty:

 

<a class="selected" title="" href="http://demo-store.prestashop.com/en/6-electronics">Electronics</a>

 

Thank you.

post-437146-0-96253600-1376129776_thumb.jpg

Link to comment
Share on other sites

in this case you have to edit the module .tpl file: category-tree-branch.tpl file (blockcategories module)

you've got there:

<a href="{$node.link|escape:'htmlall':'UTF-8'}" {if isset($currentCategoryId) && $node.id == $currentCategoryId}class="selected"{/if} title="{$node.desc|escape:'htmlall':'UTF-8'}">{$node.name|escape:'htmlall':'UTF-8'}</a>

 

just remove the:

title="{$node.desc|escape:'htmlall':'UTF-8'}"

  • Like 2
Link to comment
Share on other sites

vekia,

OK mark this topiс as [solved]

 

It works fine! Just one note: the file category-tree-branch.tpl is placed under /themes/mytheme/modules/blockcategories/

 

There is also the same name file under /modules/blockcategories/ but it does not work.

 

Thanks again!

Link to comment
Share on other sites

hello

 

it's because prestashop has got "override" feature. With this great feature you can easily create own template files also for the modules located in your theme file. It mean, that you can customize each aspect of the visible parts of the store with the theme (both modules .tpl and theme files)

 

if module .tpl file exists in the theme directory - then you have edit it, because original file will not work anymore.

 

best regards

  • Like 1
Link to comment
Share on other sites

  • 2 years later...

This should by default display the actual category title instead of the category description. We're running 1.6.1.3 and it does the same thing. How could I get this to display the category title instead of description in 1.6.1.3?

 

Sorry to bump an old thread.

Link to comment
Share on other sites

×
×
  • Create New...