Amy Pond Posted February 21, 2021 Share Posted February 21, 2021 Hello! I set to open a new topic on a specific forum when I add an article; is it possible to truncate the topic after a certain number of characters? Thank you 🙂 Link to comment Share on other sites More sharing options...
Davyc Posted February 21, 2021 Share Posted February 21, 2021 @Amy Pond In the template topicRow find: <h4 class='ipsDataItem_title ipsContained_container'> And change it to: <h4 class='ipsDataItem_title ipsContained_container ipsTruncate ipsTruncate_line'> That should automatically truncate the title without having to specify the number of characters. I use this in a number of places on my site to stop lines from overflowing (see example here https://moviebuffs.org/forums/forum/45-superheroes/ the first item is a very long title) I also use it on the front page for the Our Picks carousel here > https://moviebuffs.org/ Let me know it if works for you 🙂  Link to comment Share on other sites More sharing options...
Morrigan Posted February 22, 2021 Share Posted February 22, 2021 8 hours ago, Amy Pond said: Hello! I set to open a new topic on a specific forum when I add an article; is it possible to truncate the topic after a certain number of characters? Thank you 🙂 I don't think so. But you may be able to use the "Quote" functionality so that it auto-hides the data but it will still be expandable. Link to comment Share on other sites More sharing options...
Davyc Posted February 22, 2021 Share Posted February 22, 2021 Ah, my bad there. I thought you meant the topic title, but it's the topic content itself you want truncated. You won't be able to do this if you only want specific topic content truncated, as it's all or nothing, in that it will be all topics that will be affected. You would need a plugin that could isolate which forums would be affected, and that will cost you as I don't think there is anything in the marketplace. Apologies for misreading what you wanted 🙂   Link to comment Share on other sites More sharing options...
Amy Pond Posted February 22, 2021 Author Share Posted February 22, 2021 2 hours ago, Davyc said: Apologies for misreading what you wanted 🙂 Don't worry! 😄 Thank you, I was hoping 😞 Link to comment Share on other sites More sharing options...
Recommended Posts