SFN Posted January 30, 2020 Posted January 30, 2020 Hi everyone! I'm trying to truncate some forum descriptions to 2-3 lines and am not quite sure how to correctly implement this widget. I've gotten as far as wrapping the text with the code as seen below as an example. On my site, it truncated the text to 4 lines, but I see on the documentation that it's possible to modify the number of lines with some optional parameters; where in the code would I place these parameters and what's the syntax for it? Thanks in the advance! <div data-ipstruncate=""> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </div>
opentype Posted January 30, 2020 Posted January 30, 2020 You add the options like so: <div data-ipstruncate data-ipstruncate-size="something" data-ipstruncate-expandText="somethingelse">
SFN Posted January 30, 2020 Author Posted January 30, 2020 4 minutes ago, opentype said: You add the options like so: <div data-ipstruncate data-ipstruncate-size="something" data-ipstruncate-expandText="somethingelse"> Thank you very much!!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.