By romagromov on Friday, 07 August 2015
Posted in Technical Issues
Replies 1
Likes 0
Views 697
Votes 0
Hi!

I found, that if in related posts title displays in 3 lines - it moves div down.

http://monosnap.com/image/2cnw8FokE6pmgYNyNwHiO0ME1kzG07.png

So, how to truncate text in Related Posts Title?

Is there native EB function, like in K2

$text = K2HelperUtilities::characterLimit($text,50);
Edit the file /components/com_easyblog/themes/wireframe/blogs/entry/default.php and locate the codes below,


<a href="<?php echo $related->getPermalink();?>"><?php echo $related->title;?></a>


Replace with,


<a href="<?php echo $related->getPermalink();?>"><?php echo JString::substr($related->title, 0, 20);?></a>
·
Friday, 07 August 2015 02:59
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post