Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How To Change Gravatar In WordPress

Using Gravatar on WordPress blogs is on the rise as more and more bloggers, theme designers, developers, etc., are preferring Gravatar over the default Avatar (Mystery Man). If you are using WordPress blogging platform and looking for a way to change the default Gravatar, you are in the right place as I have given a step by step guide to change Gravatar in WordPress.

By following the tutorial given here, you will be able to change the default avatar in WordPress to a Custom Gravatar specifically designed for your business website or blog.

Tutorial To Change Gravatar In WordPress:

1) To get started, prepare a branded image for your WordPress blog or website (it could be your logo or you can use a custom-designed image). Once done, rename it to gravataricon.gif and save it in your desktop.

2) Now log into your cPanel and open up “File Manager”. Next, follow this path: public_html -> wp-content -> themes -> (your WordPress theme name) -> images and upload the “gravataricon.gif“. If you have followed this step carefully, your gravatar icon will be uploaded in this path: yourdomain.com/wp-content/(your theme name)/images/gravataricon.gif

3) Next, log into your WordPress dashboard and click on “Appearance -> Editor“. Now open up “functions.php” and add the following code:

add_filter( 'avatar_defaults', 'newgravatar' );

function newgravatar ($avatar_defaults) {
$myavatar = get_bloginfo('template_directory') . '/images/gravataricon.gif';
$avatar_defaults[$myavatar] = "Free Android Root";
return $avatar_defaults;
}

Change “Free Android Root” to your WordPress website or blog name.

4) Now click on “Discussion” under the “Settings” tab and change the “Default Avatar” to your custom Gravatar.

That’s it. Now you have successfully changed the default avatar to a custom Gravatar in your WordPress blog or website. If someone without a Gravatar account posts a comment in your WordPress blog or website, the new custom Gravatar will show up as their image instead of the default Mystery Man.

If you encounter any issues while following this tutorial, do let me know via comments.

The post How To Change Gravatar In WordPress appeared first on Crack Aloud.



This post first appeared on Crack Aloud - Useful Tips, Tricks And Tutorials, please read the originial post: here

Share the post

How To Change Gravatar In WordPress

×

Subscribe to Crack Aloud - Useful Tips, Tricks And Tutorials

Get updates delivered right to your inbox!

Thank you for your subscription

×