WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Recently Viewed Posts] how to remove bullets (3 posts)

  1. beggers
    Member
    Posted 4 years ago #

    I really like this plugin but I'd like to remove the 10x10 gravatar icons because my style already adds icons. Can you tell me how to remove this code? I'm pretty sure it's in the section below but my coding skill aren't that good.

    $html .= '<li><img src="http://www.gravatar.com/avatar/' . $item[1]
    				.'.jpg?s=10&d=identicon" alt=" " width="10" height="10" />&nbsp;<a href="'
    				.get_permalink( $item[0] ).'">'.get_the_title( $item[0] ).'</a> '
    				.recently_viewed_posts_time_since( $item[2] ).' ago </li>';
    			if ( ++$count == $max_shown )
    				break;  // i've shown enough

    http://wordpress.org/extend/plugins/recently-viewed-posts/

  2. Pinoy.ca
    Member
    Posted 4 years ago #

    Hi there, Thanks for checking the plugin out.

    To remove the icons, remove the <img ...>&nbsp;. The above code will become

    $html .= '<li><a href="'
    	.get_permalink( $item[0] ).'">'.get_the_title( $item[0] ).'</a> '
    	.recently_viewed_posts_time_since( $item[2] ).' ago </li>';
    if ( ++$count == $max_shown )
    	break;  // i've shown enough
  3. beggers
    Member
    Posted 4 years ago #

    That worked perfectly! I appreciate the quick response. Please send me your Paypal address so I can make a donation. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic