Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted August 3, 20204 yr 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
August 3, 20204 yr 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>
August 4, 20204 yr Author @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 🙂