Hide, Remove, or Delete Author Avatar in Wordpress P2 Theme

Oleh: James Tyler
December 1, 2009

I wanted to remove or hide the author avatar in the P2 theme for Wordpress. It can be done, I just did on my Last Night TXTS site.  It’s actually pretty simple to hide it; just modify these paramaters in style.css:

#main img.avatar {
display:none;
}

#postbox .avatar img {
display:none;
}

Also, if you are looking to get rid of it, just go to entry.php, find this:

<?php
printf(
'<a href="%1$s" title="%2$s">%3$s</a>',
get_author_posts_url( p2_get_author_id() ),
sprintf( __( 'Posts by %s', 'p2' ), esc_attr( p2_get_author_name() ) ),
p2_get_user_avatar( array( 'user_id' => p2_get_author_id(), 'size' => 48 ) )
);
?>

and either delete it or comment it out like so:

<?php
/* printf(
'<a href="%1$s" title="%2$s">%3$s</a>',
get_author_posts_url( p2_get_author_id() ),
sprintf( __( 'Posts by %s', 'p2' ), esc_attr( p2_get_author_name() ) ),
p2_get_user_avatar( array( 'user_id' => p2_get_author_id(), 'size' => 48 ) )
); */
?>

Tags: , ,

Category: Technology, Wordpress | RSS 2.0 | Give a Comment | trackback

No Comments

Leave a Reply

This blog is monetized using Are-PayPal WP Plugin