Hi Guys,
I've tried adding truncateHtml to the article scroller addon, in particular doing a HTML override and editing line 214
from
if ($show_intro) {
$output .= '<div class="sppb-articles-carousel-introtext">' . $intro_text . '...</div>';}
to
if ($show_intro) {
$output .= '<div class="sppb-article-introtext">' . $this->truncateHtml($item->introtext, $intro_limit) . '</div>';
}
But it's throwing a 500 error when I do this.
I've done this multiple times without issue on other addons.
Basically I just want the articles scroller to stop stripping out the HTML tags (Bold, H2 etc) - how do I go about doing this if I can't truncate the introtext?