WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: WordPress Popular Posts] Title from Top of Thumbnail. (2 posts)

  1. Vajrasar Goswami
    Member
    Posted 2 years ago #

    I was facing an issue in wordpress popular post, as the title was starting from the bottom of thumbnail. I wanted that title to start from the top of the thumbnail and also the thumbnail should also be on left.

    am using the modifications done : http://www.udaipurtimes.com
    (nearly the last widget in the sidebar.)

    So, I did this :

    in wpp.css

    wpp-post-title
    {
    float:right;
    height:40px;
    padding-right:30px;
    width:230px;

    }

    and also in wpp.php you need to change the code a bit.

    $content .= '<li>'. $thumb .'<a href="'. get_permalink($the_ID) .'" title="'. $title_attr .'"><span class="wpp-post-title">'. $tit . '</span></a>' . $post_content .' '. $stats . $rating .'</li>
    ' . ''. "\n";
    
    By this code:
    
    $content .= '<li>'. $thumb .'<a href="'. get_permalink($the_ID) .'" title="'. $title_attr .'"><span class="wpp-post-title">'. $tit . $post_content .' '. $stats . $rating .'</span></a>' .'</li>
    ' . ''. "\n";

    am using only title and view to show in plugin so this worked for me, if you want other attributes as the author name, date etc, then you just have to shift '</span>' a bit.

  2. Vajrasar Goswami
    Member
    Posted 2 years ago #

    the thumbnail size am using is 40 X 40

Topic Closed

This topic has been closed to new replies.

About this Topic