Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Davyc Posted August 3, 2020 Posted August 3, 2020 Is it possible to truncate the amount of text in a topic hovercard? For example, there may be 50 lines of text, but only 5 would be preferred to limit the length of the hovercard. With thanks
Goza Posted August 3, 2020 Posted August 3, 2020 You can search for TopicHover template then towards the bottom find <div class='ipsType_richText ipsType_small' data-controller='core.front.core.lightboxedImages'> {$tabData[1]->content()|raw} </div> replace <div class='ipsType_richText ipsType_small ipsTrucate' data-ipsTruncate data-ipsTruncate-size='4 lines' data-ipsTruncate-type='remove' data-controller='core.front.core.lightboxedImages'> {$tabData[1]->content()|raw} </div> bfarber and Davyc 1 1
Davyc Posted August 4, 2020 Author Posted August 4, 2020 @Goza you are a star - worked perfectly, all I had to do was adjust the number of lines accordingly and it works. Thank you for your help, much appreciated 🙂
Recommended Posts