Sometimes that default Gravatar with the gray and white seems boring. Lucky for you, instead of altering internal WordPres files, you can harness the power of adding a filter to your theme’s functions.php to change your default image to display.
1. Open your template’s functions.php
2. Insert the following code:
add_filter( 'avatar_defaults', 'newgravatar' ); function newgravatar ($avatar_defaults) { $myavatar = get_bloginfo('template_directory') . '/images/yournewgravatar.jpg'; $avatar_defaults[$myavatar] = "Your New Gravatar"; return $avatar_defaults; }
3. Change where younewgravatar.jpg to the image you want and change the following text, Your New Gravatar to the name you wish to have your new default avatar be called.
Actually i didn’t used gravatar and not very techie person but i think i’ve to learn this in case i need this in the future, thanks for sharing Nile.
Yes, the default color of wordpress avatar is so boring…How come they chose that color grey?…lifeless…
I am going to share this tips write on my forum. Now I can change funky cartoon image of my own/
This is a good tip I wasn’t aware that you can do something like that in WordPress. Thanks for sharing.
Dragos
Hi, it took me some time, but I managed to get it done! Thanks for the tip!
I think this is critical for people using WordPress for ‘real’ sites (not just blogs, though it’s important for them too). Nothing looks less polished than the standard little wordpress box in the header
i love worpress because of thesis theme i can easily edit anything withou any problem , thanks for your tutorial .i am looking for this to change my wp default avatar
Nice tip for WordPress Blog. Thanks author.