Released 2x How to trim Xenforo Latest Thread Widget Words Limit

Belinux

Well-known member
Registered
Joined
Aug 17, 2021
Messages
48
Points
18

Reputation:

Hi, All, I am looking for any mode of template modification by that I can trim Xenforo Latest Thread Widget Words Limit. I have added Latest Thread Widget on homepage with Expended View. But issue is that on homepage each thread is showing the full text. I just want to trim it with 100 words.

Tried: https://xenforo.com/community/threads/setting-maximum-preview-length-widget-height-for-expanded-view-on-new-threads-widget.195914/#post-1524791

issue is that, It changes the height of block which creates mess with CSS, not doing actual words trim function.
Here is my SITE URL: https://xf.cheaprdp.cyou/index.php

Your efforts would be appreciated if you can help in this regard.

Untitled.png
 

Splicho

Synapse-Themes.cc Owner
Staff member
Moderator
Collaborate
Registered
Joined
Jan 21, 2022
Messages
822
Points
153

Reputation:

Either you can do it fast and easy with css like that

CSS:
.text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* Number of lines you want to show */
    overflow: hidden;
    text-overflow: ellipsis;
}

Or precisely per word count with JavaScript but that requires more work.

But I see you already fixed it?

 
Top