Rating-Widget: Star Review System
[resolved] Widget cutting off titles too early (4 posts)

  1. dubbinz
    Posted 2 years ago #

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


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


  2. dubbinz
    Posted 2 years 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;


    $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
    Plugin Author

    Posted 2 years 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
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Rating-Widget: Star Review System
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.