WordPress Popular Posts
[Plugin: WordPress Popular Posts] Text wrapping & formatting when using thumbnail (2 posts)

  1. Morten Ross
    Posted 5 years ago #


    I would like to change from Woo themes Aperture Popular posts widget to yours, but I need to know if I can format and wrap text the same way as in Aperture I'm currently using here: http://www.ross.no/communicate



  2. Morten Ross
    Posted 5 years ago #

    As per haredx' input in another thread, I have found that I can change this paragraph in wordpress-popular-posts.php line 735:

    $content .= '<li>'. $thumb .'<h4><a href="'. get_permalink($wppost->ID) .'" title="'. $title_attr .'"><span class="wpp-post-title">'. $tit .'</span><br></a>'. $post_content .' '. $stats . $rating .'</li>' . "\n";

    This ensures title and counters are on separate lines, and bold header (just as is the default in wordpress.org). Problem is I don't know how to put the lines to the top right of the thumb (as it is by default here in wordpress.org). The above code will put text below image, and the default behaviour of the plugin is to put the title and counters in one long string starting at the last line right to the thumb and then wrapping next line underneath the thumb if the header is longer.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Popular Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic