• If there’s bold text in the testimony and it’s cut off due to word limit, the bold text continues down the page effecting every other HTML element with bold text until the document ends.

    Also, the read more link appears even if the testimony is well within the word limit. I think it shouldn’t appear if it’s well within the word limit.

    Finally, the h5 element, which is used to display author name, company etc., if this information is empty, it shouldn’t render h5 at all.

    I edited this file:

    clean-testimonials/class.wp-testimonial.php

    To this line of code

    <a href="' . get_permalink( $this->ID ) . '">Read More</a>

    I added this:

    . ' &hellip; </strong><a href="' . get_permalink( $this->ID ) . '">Read More &raquo;</a>';

    Notice the closing strong tag. This is a hack to prevent all the following elements to be wrapped with strong tags after being cut off by the word limit feature.

    I also used a proper special character for the … and I added a right angle quote. The last two are my own touches.

    Great plugin!

    https://www.ads-software.com/plugins/clean-testimonials/

  • The topic ‘Word Limit causes visual bugs when certain elements are clipped’ is closed to new replies.