Change the Default Gravatar in WordPress

Prem Tiwari - - WordPress Snippets

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

Prem Tiwari

Prem Tiwari is the founder of and also a professional developer and a blogger by hobby.

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.