[solution][wordpress] Change the size of your gravatar/avatar

By.

min read

My profile

Share this:

Here’s a howto to change the avatar size to 64*64 pixels.
Tested with gravatar at 2.7.1

Keep in mind that if there is any CSS like:
[code:1:7858119174].commentlist .comment-author img.avatar {
display: block;
float: left;
height: 16px;
width: 16px;
margin: 0 4px 0 0;
}[/code:1:7858119174]

you’ll need to change it to:
[code:1:7858119174].commentlist .comment-author img.avatar {
display: block;
float: left;
//height: 16px;
//width: 16px;
margin: 0 4px 0 0;
}[/code:1:7858119174]

[code:1:7858119174]OPEN
wp-content/themes/[yourtheme]/comments.php[/code:1:7858119174]

[code:1:7858119174]FIND
wp_list_comments();[/code:1:7858119174]

[code:1:7858119174]REPLACE WITH
wp_list_comments(array(’avatar_size’=>64));
// Changed avatar size to 64
// http://www.ramonfincken.com/permalink/topic136.html[/code:1:7858119174]

Linked at:
http://wordpress.org/support/topic/214862?replies=11#post-1022994

Share this:

Leave a Reply

Your email address will not be published. Required fields are marked *