Jump to content

Latest Posts Widget/truncated post title


Staralfur

Recommended Posts

Posted

Hi, how can I increase the number of characters in the post title (and have it wrap to a second line nicely?). This is for the forum sidebar widget, please see red circle. Thanks.

 

latest.png

Posted

I would...

create a custom block with the settings you want. Content tab > Use as base for custom widget > Then you need to look at

							<div class='ipsType_break ipsContained'><a href="{$comment->url()}" title='{lang="view_this_topic" sprintf="$comment->item()->title"}' class='ipsType_medium ipsTruncate ipsTruncate_line'>{$comment->item()->title}</a></div>

and make some changes. Refer to the bit just below on the post text for one way...

							<div class='ipsType_medium ipsType_textBlock ipsType_richText ipsType_break ipsContained ipsSpacer_top ipsSpacer_half' data-ipsTruncate data-ipsTruncate-type='remove' data-ipsTruncate-size='{{if $orientation == 'vertical'}}6 lines{{else}}2 lines{{endif}}' data-ipsTruncate-watch='false'>

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...