How To Add WordPress Author Image Without Gravatar Account

How To Add WordPress Author Image Without Gravatar Account

Share with others

If you are looking for ways to add WordPress or image without putting your time into creating a Gravatar account or don’t want to use another plugin Then you are at the right place. WordPress supports 30% of the entire Web world and is daily used by its millions of users. Therefore every site owner, blogger, or post author is always encouraged to add an image to create a more closer connection with the reader.

So how you can add an Author image. There are many ways. Some of the famous ways are creating your account on Gravatar or using any third-party plugin. Gravatar is a feature for providing globally unique avatars and it was created by Tom Preston-Werner. This Gravatar service was acquired by Automattic (the company that manages WordPress) in 2007. But creating an account is sometimes annoying for a new person who has already put so much time in creating a website or getting a website.

Therefore let’s talk about an instant way that will not put any more burden on your site and will also not take your time in creating and verifying the account. Here is step by step guide with supporting images, to add author image

Method to add Author image without Gravatar or any other plugin

 

Step 1 Go to your WordPress Dashboard

How To Add WordPress Author Image Without Gravatar Account

Step2 Go to settings >Discussion ,scroll down and make sure that option “Display Avatar” is marked as Tick

 

How To Add WordPress Author Image Without Gravatar Account

Step3 Now go to your theme editor by clicking on Appearance>Theme Editor & open the functions.php file.

How To Add WordPress Author Image Without Gravatar Account

Step 4 Copy and Paste the following code into the functions.php file and replace the ‘Your_image_url‘; with the link of your image in the code. You can get the link from the Media Library by clicking on the image

How To Add WordPress Author Image Without Gravatar Account

Use This Code:

add_filter( ‘avatar_defaults’, ‘wpb_new_gravatar’ );
function wpb_new_gravatar ($avatar_defaults) {
$myavatar = ‘your_image_url‘;
$avatar_defaults[$myavatar] = “Default Gravatar”;
return $avatar_defaults;
}

Step 5 /Final step, Follow step 2 to go to the Discussion section again, and now There will be a new option  “Default Gravatar”. Mark it , You have successfully set your author image without any plugin or Gravatar Account.

How To Add WordPress Author Image Without Gravatar Account

Conclusion

By following these simple steps you will be able to add author image without any external plugin or Gravatar account .So it good for your site as it is time saving and doesn’t require external plugin! .Let us know in the comment section if you find it helpful or faced any problem while following the steps.

Leave a Comment

Your email address will not be published. Required fields are marked *