Change the Default Gravatar in WordPress

By Prem Tiwari in WordPress Snippets. Updated on

By default, WordPress comes with some basic default user avatar is named “Mystery Person”. In this tutorial, I will explain how to change the default gravatar in WordPress.

If you want to add your brand to default user gravatar for the newly registered user in your website, then keep your close your attention in this post.

Change the Default Gravatar in WordPress

use the below code at the end of your functions.php file. functions.php file is located in wp-content/themes/your-theme-folder/functions.php.. Change the Image path in this line of code $myavatar = '';

After adding the above code login to your WordPress admin panel and navigate to the Settings => Discussion Settings. At the end of this page, you will see a default avatr has been added. see the screenshort.

Change the Default Gravatar in WordPress

Sharing is caring!

Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

You might also like:

Tags: , , , , , ,

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.