WordPress.org

Ready to get started?Download WordPress

Forums

Rating-Widget
[resolved] Widget cutting off titles too early (4 posts)

  1. dubbinz
    Member
    Posted 11 months ago #

    My widget seems to be cutting off titles far to early. An image will explain this better.

    http://i31.photobucket.com/albums/c391/steveyk/widget.jpg

    where are the settings for the cutoff so I can increase it?

    http://wordpress.org/extend/plugins/rating-widget/

  2. dubbinz
    Member
    Posted 11 months ago #

    I found a line in rating-widget that has an effect on this widget in rating-widget.php on line 4388

    I changed it from

    $short = (mb_strlen($title) > 30) ? trim(mb_substr($title, 0, 30)) . "..." : $title;

    to

    $short = (mb_strlen($title) > 30) ? trim(mb_substr($title, 0, 70)) . "" : $title;

    I had to remove the ... because even though the title was being displayed in full in some long titles the ... was still showing so I had to remove it.

    This is now resolved.

  3. vovafeldman
    Member
    Plugin Author

    Posted 11 months ago #

    Hey @dubbinz, following many requests, if you'll upgrade to the latest release we've added this feature right into the widget settings :)

  4. dubbinz
    Member
    Posted 11 months ago #

    Ah you just updated, thanks. Just to inform anyone else the title length options are in the widget options.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.