Jump to content

Prestashop 1.6 how to change the category description lenght?


Recommended Posts

Hello

 

Using PS 1.6.0.8

 

You can change the truncate value in your category.tpl file by going to:

 

public_html/Your Shop/themes/default-bootstrap/category.tpl

 

and around line 59 you should see:

 

 {if Tools::strlen($category->description) > 350}   (Change this number)
                                <div id="category_description_short" class="rte">{$description_short}</div>
                                <div id="category_description_full" class="unvisible rte">{$category->description}</div>
                                <a href="{$link->getCategoryLink($category->id_category, $category->link_rewrite)|escape:'html':'UTF-8'}" class="lnk_more">{l s='More'}</a>
                            {else}

 

Before

http://screencast.com/t/pPrsaX9PJ

 

After

http://screencast.com/t/7bn7pIx8xxi

 

Looks a little odd though if the text is too long

 

Paul

Link to comment
Share on other sites

  • 2 months later...

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...