How to set number of text rows in category/location page – Directory+

Updated: April 4, 2018

Unfortunately theme doesn’t have such option, you have to change source code manually. Modification below is described on Directory+ Theme.

In order to change lenght of displayed text on Category or Location pages, edit file ./wp-content/themes/directory2/portal/parts/item-container.php and look for following part of code:

{!$post->excerpt|striptags|trim|truncate: 250}

Change truncate parameter to another number of displayed characters.

In order to change length of text on Search Results page, do the same change in theme file ./parts/post-content.php

Modification in our other directory type themes is basically the same, just some small differences in code may appear.

About Ivan Hudak

Works as an IT consultant for over 7 years now. He's a manager of our support team. Knows everything about all our themes, HTML, CSS, PHP and jQuery.