Notifications
Clear all

Style [Solved] Truncate Quotes

3 Posts
2 Users
0 Reactions
1,027 Views
Posts: 23
Topic starter
(@meibukan76)
Eminent Member
Joined: 4 years ago

I've searched the forums and haven't been able to find an answer as to how to shorten quotes. If I have a member quote a long post and they don't take the time or don't want to erase any of it, then it takes up a lot of page space. Is there a way to limit the amount of the quote that is shown in the reply automatically, maybe with an option to show the whole thing if needed? 

2 Replies
Robert
Posts: 10587
Admin
(@robert)
Support Team
Joined: 9 years ago

Hi @meibukan76,

Here is a quick workaround. You can set max-height of the quote and automatically show a scrollbar to scroll the content of the quote. Insert this CSS code in Dashboard > Forums > Settings > Styles > Custom CSS Code textarea, save it, delete all caches, go to forum front-end and press Ctrl+F5:

#wpforo #wpforo-wrap .wpforo-post blockquote, #wpforo #wpforo-wrap .wpforo-revision-body blockquote {
   max-height: 150px;
    overflow-y: auto;
}
1 Reply
(@meibukan76)
Joined: 4 years ago

Eminent Member
Posts: 23

Beautiful @robert It worked perfectly! Thanks.