Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted January 30, 20205 yr 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>
January 30, 20205 yr You add the options like so: <div data-ipstruncate data-ipstruncate-size="something" data-ipstruncate-expandText="somethingelse">
January 30, 20205 yr Author 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!!
Archived
This topic is now archived and is closed to further replies.