I will show you How to Change the Default Gravatar in WordPress, why? Because one of my favourite WordPress Comment enhancement is added Gravatar, after Gravatar become Automattic Family, Gravatar become more and more better. Especially integrated with many many Automattic Family, and of course WordPresss too.
Why changed the default (Misery Man) Gravatar? For me, it’s will make our website more unique and of course we can added extra banner or something in our Default Gravatar. Let’s get started, write down tiny code below in your theme functions.php
Change The Default Gravatar Code
add_filter( 'avatar_defaults', 'customgravatar' );
function customgravatar ($avatar_defaults) {
$myavatar = get_bloginfo('template_directory') . '/images/custom-gravatar.jpg';
$avatar_defaults[$myavatar] = "WP Tricks & Tips";
return $avatar_defaults;
}
You can tweak code above and change the code to reflected your Website, after you write this code on your functions.php don’t forget to upload your custom gravatar into you images folder in your theme, on my example we give the name custom-gravatar.jpg. And done, you have better default gravatar in your website and blog. Thanks for Build Internet to explain and show this wonderful code



Pingback: Tweets that mention The Right Way to Change The Default Gravatar in Wordpress #tricks #addfilter #wordpress -- Topsy.com
Pingback: uberVU - social comments
Pingback: Change Editor Style In WordPress 3.0 | Silver Blog
Pingback: How To Load Gravatar on the Fly | Unlock IMEI Cellphones
Pingback: Change Editor Style In WordPress 3.0 | Unlock IMEI Cellphones
Pingback: How To Increasing memory allocate on WordPress | Silver Blog
Hi,
Has anyone tested this on wordpress 3? It doesn’t seem to change anything.
Would it have something to do with the theme I have installed!
Any help appreciated. Thanks
I think usually people prefer google search engine for their queries.
Hi,
Has anyone tested this on wordpress 3? It doesn’t seem to change anything.
Hi, thanks for sharing.
Has anyone tested this on wordpress 3? It doesn’t seem to change anything.
Would it have something to do with the theme I have installed!