You can easily brand your blog more by using your own default avatar for comments. To say good bye to Mystery Man, follow these steps:
Step-1 Open you theme’s image directory and upload your logo for default avatar. Suppose you uploaded the default avatar image defaultavatar.gif in your theme’s image directory.
Step-2 Now open your theme’s function.php file and add the following action:
add_filter( âavatar_defaultsâ, ânewgravatarâ );
function newgravatar ($avatar_defaults) {
$myavatar = get_bloginfo(âtemplate_directoryâ) . â/images/defaultavatar.gifâ;
$avatar_defaults[$myavatar] = “MyAvatar”;
return $avatar_defaults;
}
Step-3 Now you can visit your WP Dashboard->Settings->Discussions, scroll down to Default Avatar section and choose your new uploaded default avatar for your WordPress site.

