You know how you can select a variety of gravatars to use for the users who leave comments but aren’t setup with any system to have a gravatar display.
Now you can create a custom gravatar matched to your site and have it display!
First, create the image you want to display; I suggest 44X44 pixels square.
Just paste this code into your Custom_Functions.php file and upload it, then upload the imagine into your Thesis/custom/Images directory and name it gravatar.jpg. This image will now display for all of those posts instead of something determined by WordPress.
/* Add a Custom Default Gravatar */
if ( !function_exists(‘custom_gravatar’) ) {
function custom_gravatar( $avatar_defaults ) {
$myavatar = get_bloginfo(‘template_directory’) . ‘/custom/images/gravatar.jpg’;
$avatar_defaults[$myavatar] = ‘visitor’;
return $avatar_defaults;
}
add_filter( ‘avatar_defaults’, ‘custom_gravatar’ );}
/*—————————————————–*/
Take a look at Vino Luci Style and see the wine glass avatar for users without one!


