Jump to content

[SOLVED] Lengthen Subcategory Description Text Under Thumbnails?


Recommended Posts

Hi All

 

I have a category containing 18 subcategories.

The category thumbnail images are displayed in a grid view, five images wide.

 

The description text below the images is in a large font that is truncated after 16 characters.

 

My problem is that each of my category descriptions begins with the same two words (a brand name) which is 16 characters long. This means that every description looks the same and the unique part of the description cannot be seen.

 

Is there a way to increase the number of characters in the description?

 

Thanks

deepee

 

Edited by deepee (see edit history)
Link to comment
Share on other sites

<h5><a class="subcategory-name" href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}">{$subcategory.name|truncate:25:'...'|escape:'html':'UTF-8'|truncate:350}</a></h5>

category.tpl file located in your theme directory

 

there is an truncate:25 function

increase number of chars to any other value you want

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...