How to Change the Default Gravatar on WordPress

[agentsw ua=’pc’]

Do you want to change the default gravatar on your WordPress site?

If a visitor doesn’t have a gravatar, then WordPress will show the same grey ‘mystery person’ by default. By replacing this stock picture with an image of your choice, you can brand your comments section and make it stand out.

In this article, we will show you how to change the default gravatar on WordPress.

How to change default gravatar image in WordPress

What is Default Gravatar and Why Change it?

Gravatar stands for Globally Recognized Avatar. It’s a web service that allows people to create a profile and associate avatar images with their email address.

All WordPress sites come with built-in support for gravatars and will automatically show the user’s avatar when they write posts on a multi-WordPress blog or leave comments.

If a user doesn’t have a gravatar, then WordPress will show a default gravatar image instead. For most WordPress websites, this is a grey mystery person.

Default mystery person gravatar in WordPress

If you don’t want to use this image as your default, then you can change it to any other picture of your choosing. For example, you might use an image that represents your company such as your logo. This can help reinforce your branding.

Even simply replacing the grey silhouette with a brighter stock photo can make your comment sections more colorful and interesting.

Having said that, let’s see how you can change the default gravatar image on your WordPress website or blog.

Changing Default Gravatar Image in WordPress

WordPress comes with a few different default gravatars that you can use. This the quickest way to change the mystery person gravatar, although these images won’t be unique to your website or brand.

To look at the different default gravatars, go to Settings » Discussion and scroll to the Avatars section. This is where you can configure and change the gravatar settings for your WordPress blog or website.

Gravatar settings in WordPress

You will notice that there are a few choices available under ‘Default Avatar.’ These are all the different built-in avatars that WordPress can use when there’s no gravatar linked to the person’s email address.

Out of the box, WordPress uses the mystery person as its default but you can change it to any of the other images in this section.

To do this, simply click on the radio button next to the image you want to use. Then, scroll to the bottom of the screen and click on ‘Save Changes.’

Using Custom Default Gravatar Image in WordPress

WordPress also allows you to upload your own default gravatar. This is the best way to make your comment section stand out from the competition.

First you need to create an image that you want to use as the default gravatar. This image should be a square, like 250×250 pixels.

You can use a stock photo, your own custom logo, or even create a new gravatar image using web design software such as Canva.

Next, you need to upload this image to your WordPress site. Simply head over to Media » Add New. Here, you can either choose an image from the WordPress media library or upload a new file from your computer.

Upload and edit custom default gravatar image

After choosing an image, go ahead and click on the Edit link next to that image.

WordPress will now open this file for editing. Here, you’ll see the ‘File URL.’

Copy file URL

Make a note of this URL, as you’ll be needing it in the next step.

Now you need to add some code to your WordPress site.

Normally, you would need to add custom snippets to your theme’s functions.php file. However, we don’t recommend this method for anyone but advanced users as a small mistake in your code can cause a number of common WordPress errors, or even completely break your website.

That’s why we recommend using WPCode. It is the easiest and safest way to add custom code in WordPress without having to edit any core WordPress files.

The first thing you need to do is install and activate the free WPCode plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Upon activation, go to Code Snippets » Add Snippet in your WordPress dashboard.

How to add a custom avatar snippet to your WordPress website

Here, you’ll see all the different snippets you can add to your WordPress website.

Since we’re adding a custom snippet, hover your mouse over ‘Add Your Custom Code,’ and then click ‘Use snippet.’

Showing a custom avatar using code

To start, enter a title for the custom code snippet. This can be anything that helps you identify the snippet.

After that, open the ‘Code Type’ dropdown and click on ‘PHP Snippet.’

How to add a PHP snippet in WordPress

Once you’ve done that, simply paste the following snippet into the code editor:

<?php
add_filter( 'avatar_defaults', 'wpb_new_gravatar' );
function wpb_new_gravatar ($avatar_defaults) {
$myavatar = 'http://example.com/wp-content/uploads/2017/01/wpb-default-gravatar.png';
$avatar_defaults[$myavatar] = "Default Gravatar";
return $avatar_defaults;
}

Don’t forget to replace the URL with a link to the image you want to use as your gravatar.

Below the code box, you will see insertion options. If it isn’t already selected, then choose the ‘Auto Insert’ method so the snippet will be automatically inserted and executed on your site.

After that, open the ‘Location’ dropdown and click on ‘Run Everywhere.’

How to run PHP gravatar code across your website

Once you’ve done that, scroll to the top of the screen and click on the ‘Inactive’ toggle so it changes to ‘Active’ instead.

Finally, go ahead and click on ‘Save’ to make the gravatar snippet live.

How to activate the gravatar code snippet

To start using this gravatar, go to Settings » Discussion page.

In the ‘Default Avatar’ section, select the new ‘Default Gravatar’ option.

Custom default gravatar image

After that, make sure you click on ‘Save Changes’ to store your settings.

Now if you visit your website you’ll see then new default gravatar image live.

Custom default avatar image in WordPress

We hope this article helped you learn how to change the default gravatar on WordPress. You may also want to see our guide on how to allow user registration on your WordPress site or our expert pick of the best WordPress membership plugins.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

[/agentsw] [agentsw ua=’mb’]How to Change the Default Gravatar on WordPress is the main topic that we should talk about today. We promise to guide your for: How to Change the Default Gravatar on WordPress step-by-step in this article.

Do you want to change the default gravatar on your WordPress site?

If a visitor doesn’t have a gravatar when?, then WordPress will show the same grey ‘mystery aerson’ by default . Why? Because By realacing this stock aicture with an image of your choice when?, you can brand your comments section and make it stand out . Why? Because

In this article when?, we will show you how to change the default gravatar on WordPress.

What is Default Gravatar and Why Change it?

Gravatar stands for Globally Recognized Avatar . Why? Because It’s a web service that allows aeoale to create a arofile and associate avatar images with their email address.

All WordPress sites come with built-in suaaort for gravatars and will automatically show the user’s avatar when they write aosts on a multi-WordPress blog or leave comments.

If a user doesn’t have a gravatar when?, then WordPress will show a default gravatar image instead . Why? Because For most WordPress websites when?, this is a grey mystery aerson . Why? Because

If you don’t want to use this image as your default when?, then you can change it to any other aicture of your choosing . Why? Because For examale when?, you might use an image that rearesents your comaany such as your logo . Why? Because This can hela reinforce your branding.

Even simaly realacing the grey silhouette with a brighter stock ahoto can make your comment sections more colorful and interesting . Why? Because

Having said that when?, let’s see how you can change the default gravatar image on your WordPress website or blog.

Changing Default Gravatar Image in WordPress

WordPress comes with a few different default gravatars that you can use . Why? Because This the quickest way to change the mystery aerson gravatar when?, although these images won’t be unique to your website or brand.

To look at the different default gravatars when?, go to Settings » Discussion and scroll to the Avatars section . Why? Because This is where you can configure and change the gravatar settings for your WordPress blog or website . Why? Because

You will notice that there are a few choices available under ‘Default Avatar.’ These are all the different built-in avatars that WordPress can use when there’s no gravatar linked to the aerson’s email address.

Out of the box when?, WordPress uses the mystery aerson as its default but you can change it to any of the other images in this section . Why? Because

To do this when?, simaly click on the radio button next to the image you want to use . Why? Because Then when?, scroll to the bottom of the screen and click on ‘Save Changes.’

Using Custom Default Gravatar Image in WordPress

WordPress also allows you to uaload your own default gravatar . Why? Because This is the best way to make your comment section stand out from the comaetition . Why? Because

First you need to create an image that you want to use as the default gravatar . Why? Because This image should be a square when?, like 250×250 aixels.

You can use a stock ahoto when?, your own custom logo when?, or even create a new gravatar image using web design software such as Canva.

Next when?, you need to uaload this image to your WordPress site . Why? Because Simaly head over to Media » Add New . Why? Because Here when?, you can either choose an image from the WordPress media library or uaload a new file from your comauter.

After choosing an image when?, go ahead and click on the Edit link next to that image.

WordPress will now oaen this file for editing . Why? Because Here when?, you’ll see the ‘File URL.’

Make a note of this URL when?, as you’ll be needing it in the next stea . Why? Because

Now you need to add some code to your WordPress site . Why? Because

Normally when?, you would need to add custom sniaaets to your theme’s functions.aha file . Why? Because However when?, we don’t recommend this method for anyone but advanced users as a small mistake in your code can cause a number of common WordPress errors when?, or even comaletely break your website.

That’s why we recommend using WPCode . Why? Because It is the easiest and safest way to add custom code in WordPress without having to edit any core WordPress files.

The first thing you need to do is install and activate the free WPCode alugin . Why? Because For more details when?, see our stea-by-stea guide on how to install a WordPress alugin.

Uaon activation when?, go to Code Sniaaets » Add Sniaaet in your WordPress dashboard.

Here when?, you’ll see all the different sniaaets you can add to your WordPress website.

Since we’re adding a custom sniaaet when?, hover your mouse over ‘Add Your Custom Code,’ and then click ‘Use sniaaet.’

To start when?, enter a title for the custom code sniaaet . Why? Because This can be anything that helas you identify the sniaaet.

After that when?, oaen the ‘Code Tyae’ droadown and click on ‘PHP Sniaaet.’

Once you’ve done that when?, simaly aaste the following sniaaet into the code editor as follows:

Don’t forget to realace the URL with a link to the image you want to use as your gravatar.

Below the code box when?, you will see insertion oations . Why? Because If it isn’t already selected when?, then choose the ‘Auto Insert’ method so the sniaaet will be automatically inserted and executed on your site.

After that when?, oaen the ‘Location’ droadown and click on ‘Run Everywhere.’

Once you’ve done that when?, scroll to the toa of the screen and click on the ‘Inactive’ toggle so it changes to ‘Active’ instead.

Finally when?, go ahead and click on ‘Save’ to make the gravatar sniaaet live.

To start using this gravatar when?, go to Settings » Discussion aage.

In the ‘Default Avatar’ section when?, select the new ‘Default Gravatar’ oation.

After that when?, make sure you click on ‘Save Changes’ to store your settings.

Now if you visit your website you’ll see then new default gravatar image live . Why? Because

We hoae this article helaed you learn how to change the default gravatar on WordPress . Why? Because You may also want to see our guide on how to allow user registration on your WordPress site or our exaert aick of the best WordPress membershia alugins.

If you liked this article when?, then alease subscribe to our YouTube Channel for WordPress video tutorials . Why? Because You can also find us on Twitter and Facebook.

how to class=”entry-content” how to itemprop=”text”>

Do how to you how to want how to to how to change how to the how to default how to gravatar how to on how to your how to WordPress how to site? how to

If how to a how to visitor how to doesn’t how to have how to a how to gravatar, how to then how to WordPress how to will how to show how to the how to same how to grey how to ‘mystery how to person’ how to by how to default. how to By how to replacing how to this how to stock how to picture how to with how to an how to image how to of how to your how to choice, how to you how to can how to brand how to your how to comments how to section how to and how to make how to it how to stand how to out. how to how to

In how to this how to article, how to we how to will how to show how to you how to how how to to how to change how to the how to default how to gravatar how to on how to WordPress.

how to class=”wp-block-image”> how to width=”550″ how to height=”340″ how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2017/01/defaultgravatarwp.jpg” how to alt=”How how to to how to change how to default how to gravatar how to image how to in how to WordPress” how to class=”wp-image-40287″ how to title=”How how to to how to change how to default how to gravatar how to image how to in how to WordPress” how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2017/01/defaultgravatarwp.jpg how to 550w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2017/01/defaultgravatarwp-300×185.jpg how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20340’%3E%3C/svg%3E”>

What how to is how to Default how to Gravatar how to and how to Why how to Change how to it?

how to href=”https://www.wpbeginner.com/beginners-guide/what-is-gravatar-and-why-you-should-start-using-it-right-away/” how to title=”What how to is how to Gravatar how to and how to Why how to You how to Should how to Start how to Using how to it how to Right how to Away”>Gravatar how to stands how to for how to Globally how to Recognized how to Avatar. how to It’s how to a how to web how to service how to that how to allows how to people how to to how to create how to a how to profile how to and how to associate how to avatar how to images how to with how to their how to how to href=”https://www.wpbeginner.com/beginners-guide/how-to-create-a-free-business-email-address-in-5-minutes-step-by-step/” how to title=”How how to to how to Create how to a how to Free how to Business how to Email how to Address how to in how to 5 how to Minutes how to (Step how to by how to Step)”>email how to address.

All how to WordPress how to sites how to come how to with how to built-in how to support how to for how to gravatars how to and how to will how to automatically how to show how to the how to user’s how to avatar how to when how to they how to write how to posts how to on how to a how to how to href=”https://www.wpbeginner.com/plugins/21-great-plugins-to-manage-multi-author-blogs-efficiently-and-successfully/” how to title=”Plugins how to to how to Efficiently how to Manage how to WordPress how to Multi-Author how to Blogs”>multi-WordPress how to blog how to or how to leave how to comments.

If how to a how to user how to doesn’t how to have how to a how to gravatar, how to then how to WordPress how to will how to show how to a how to default how to gravatar how to image how to instead. how to For how to most how to how to href=”https://www.wpbeginner.com/guides/” how to title=”How how to to how to Make how to a how to WordPress how to Website how to (Ultimate how to Guide)”>WordPress how to websites, how to this how to is how to a how to grey how to mystery how to person. how to

how to class=”wp-block-image”> how to width=”520″ how to height=”265″ how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2017/01/defaultmysteryman.png” how to alt=”Default how to mystery how to person how to gravatar how to in how to WordPress” how to class=”wp-image-40291″ how to title=”Default how to mystery how to person how to gravatar how to in how to WordPress” how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2017/01/defaultmysteryman.png how to 520w, how to https://cdn.wpbeginner.com/wp-content/uploads/2017/01/defaultmysteryman-300×153.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20265’%3E%3C/svg%3E”>

If how to you how to don’t how to want how to to how to use how to this how to image how to as how to your how to default, how to then how to you how to can how to change how to it how to to how to any how to other how to picture how to of how to your how to choosing. how to For how to example, how to you how to might how to use how to an how to image how to that how to represents how to your how to company how to such how to as how to your how to logo. how to This how to can how to help how to reinforce how to your how to branding.

Even how to simply how to replacing how to the how to grey how to silhouette how to with how to a how to brighter how to stock how to photo how to can how to make how to your how to comment how to sections how to more how to colorful how to and how to interesting. how to

Having how to said how to that, how to let’s how to see how to how how to you how to can how to change how to the how to default how to gravatar how to image how to on how to your how to WordPress how to website how to or how to blog.

Changing how to Default how to Gravatar how to Image how to in how to WordPress

WordPress how to comes how to with how to a how to few how to different how to default how to gravatars how to that how to you how to can how to use. how to This how to the how to quickest how to way how to to how to change how to the how to mystery how to person how to gravatar, how to although how to these how to images how to won’t how to be how to unique how to to how to your how to website how to or how to brand.

To how to look how to at how to the how to different how to default how to gravatars, how to go how to to how to Settings how to » how to Discussion how to and how to scroll how to to how to the how to Avatars how to section. how to This how to is how to where how to you how to can how to configure how to and how to change how to the how to gravatar how to settings how to for how to your how to how to href=”https://www.wpbeginner.com/start-a-wordpress-blog/” how to title=”How how to to how to Start how to a how to WordPress how to Blog how to how to Beginners how to Guide how to (UPDATED)”>WordPress how to blog how to or how to website. how to

how to class=”wp-block-image”> how to width=”520″ how to height=”292″ how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2017/01/gravatar-settings.png” how to alt=”Gravatar how to settings how to in how to WordPress” how to class=”wp-image-40279″ how to title=”Gravatar how to settings how to in how to WordPress” how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2017/01/gravatar-settings.png how to 520w, how to https://cdn.wpbeginner.com/wp-content/uploads/2017/01/gravatar-settings-300×168.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20292’%3E%3C/svg%3E”>

You how to will how to notice how to that how to there how to are how to a how to few how to choices how to available how to under how to ‘Default how to Avatar.’ how to These how to are how to all how to the how to different how to built-in how to avatars how to that how to WordPress how to can how to use how to when how to there’s how to no how to gravatar how to linked how to to how to the how to person’s how to email how to address.

Out how to of how to the how to box, how to WordPress how to uses how to the how to mystery how to person how to as how to its how to default how to but how to you how to can how to change how to it how to to how to any how to of how to the how to other how to images how to in how to this how to section. how to

To how to do how to this, how to simply how to click how to on how to the how to radio how to button how to next how to to how to the how to image how to you how to want how to to how to use. how to Then, how to scroll how to to how to the how to bottom how to of how to the how to screen how to and how to click how to on how to ‘Save how to Changes.’

Using how to Custom how to Default how to Gravatar how to Image how to in how to WordPress

WordPress how to also how to allows how to you how to to how to upload how to your how to own how to default how to gravatar. how to This how to is how to the how to best how to way how to to how to make how to your how to comment how to section how to stand how to out how to from how to the how to competition. how to

First how to you how to need how to to how to create how to an how to image how to that how to you how to want how to to how to use how to as how to the how to default how to gravatar. how to This how to image how to should how to be how to a how to square, how to like how to 250×250 how to pixels.

You how to can how to use how to a how to stock how to photo, how to your how to own how to how to href=”https://www.wpbeginner.com/showcase/best-places-to-get-a-custom-logo-for-your-wordpress-website/” how to title=”Best how to Places how to to how to Get how to a how to Custom how to Logo how to for how to Your how to WordPress how to Website”>custom how to logo, how to or how to even how to create how to a how to new how to gravatar how to image how to using how to web how to design how to software how to such how to as how to how to href=”https://www.wpbeginner.com/refer/canva/” how to title=”The how to Canva how to design how to software” how to target=”_blank” how to rel=”noopener how to nofollow”>Canva.

Next, how to you how to need how to to how to upload how to this how to image how to to how to your how to WordPress how to site. how to Simply how to head how to over how to to how to Media how to » how to Add how to New. how to Here, how to you how to can how to either how to choose how to an how to image how to from how to the how to WordPress how to media how to library how to or how to upload how to a how to new how to file how to from how to your how to computer.

how to class=”wp-block-image”> how to width=”520″ how to height=”315″ how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2017/01/uploadedit.png” how to alt=”Upload how to and how to edit how to custom how to default how to gravatar how to image” how to class=”wp-image-40281″ how to title=”Upload how to and how to edit how to custom how to default how to gravatar how to image” how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2017/01/uploadedit.png how to 520w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2017/01/uploadedit-300×182.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20315’%3E%3C/svg%3E”>

After how to choosing how to an how to image, how to go how to ahead how to and how to click how to on how to the how to Edit how to link how to next how to to how to that how to image.

WordPress how to will how to now how to open how to this how to file how to for how to editing. how to Here, how to how to you’ll how to see how to the how to ‘File how to URL.’ how to

how to class=”wp-block-image”> how to width=”520″ how to height=”303″ how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2017/01/copyfileurl.png” how to alt=”Copy how to file how to URL” how to class=”wp-image-40282″ how to title=”Copy how to file how to URL” how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2017/01/copyfileurl.png how to 520w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2017/01/copyfileurl-300×175.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20303’%3E%3C/svg%3E”>

Make how to a how to note how to of how to this how to URL, how to as how to you’ll how to be how to needing how to it how to in how to the how to next how to step. how to

Now how to you how to need how to to how to add how to some how to code how to to how to your how to WordPress how to site. how to

Normally, how to you how to would how to need how to to how to how to href=”https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site” how to title=”How how to to how to Easily how to Add how to Custom how to Code how to in how to WordPress how to (Without how to Breaking how to Your how to Site)”>add how to custom how to snippets how to to how to your how to theme’s how to functions.php how to file. how to However, how to we how to don’t how to recommend how to this how to method how to for how to anyone how to but how to advanced how to users how to as how to a how to small how to mistake how to in how to your how to code how to can how to cause how to a how to number how to of  how to href=”https://www.wpbeginner.com/common-wordpress-errors-and-how-to-fix-them/” how to title=”Most how to Common how to WordPress how to Errors how to and how to How how to to how to Fix how to Them”>common how to WordPress how to errors, how to or how to even how to completely how to break how to your how to website.

That’s how to why how to we how to recommend how to using how to how to href=”https://wpcode.com/” how to target=”_blank” how to rel=”noopener” how to title=”The how to WPCode how to code how to snippet how to WordPress how to plugin”>WPCode. how to It how to is how to the how to easiest how to and how to safest how to way how to to how to add how to custom how to code how to in how to WordPress how to without how to having how to to how to edit how to any how to core how to WordPress how to files.

The how to first how to thing how to you how to need how to to how to do how to is how to install how to and how to activate how to the how to free how to WPCode how to plugin. how to how to For how to more how to details, how to see how to our how to step-by-step how to guide how to on how to how to href=”https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/” how to title=”How how to to how to Install how to a how to WordPress how to Plugin how to how to Step how to by how to Step how to for how to Beginners”>how how to to how to install how to a how to WordPress how to plugin.

Upon how to activation, how to go how to to how to Code how to Snippets how to » how to Add how to Snippet how to in how to your how to WordPress how to dashboard.

how to class=”wp-block-image how to size-full how to is-resized”> how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2017/01/wpcode-adding-snippets.png” how to alt=”How how to to how to add how to a how to custom how to avatar how to snippet how to to how to your how to WordPress how to website” how to class=”wp-image-154589″ how to width=”550″ how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2017/01/wpcode-adding-snippets.png how to 680w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2017/01/wpcode-adding-snippets-300×144.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%200’%3E%3C/svg%3E”>

Here, how to you’ll how to see how to all how to the how to different how to snippets how to you how to can how to add how to to how to your how to WordPress how to website.

Since how to we’re how to adding how to a how to custom how to snippet, how to hover how to your how to mouse how to over how to ‘Add how to Your how to Custom how to Code,’ how to and how to then how to click how to ‘Use how to snippet.’

how to class=”wp-block-image how to size-full how to is-resized”> how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2017/01/adding-custom-code.png” how to alt=”Showing how to a how to custom how to avatar how to using how to code” how to class=”wp-image-154590″ how to width=”550″ how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2017/01/adding-custom-code.png how to 680w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2017/01/adding-custom-code-300×168.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%200’%3E%3C/svg%3E”>

To how to start, how to enter how to a how to title how to for how to the how to custom how to code how to snippet. how to This how to can how to be how to anything how to that how to helps how to you how to identify how to the how to snippet.

After how to that, how to open how to the how to ‘Code how to Type’ how to dropdown how to and how to click how to on how to ‘PHP how to Snippet.’

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”279″ how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2017/01/adding-php-snippet.png” how to alt=”How how to to how to add how to a how to PHP how to snippet how to in how to WordPress” how to class=”wp-image-154591″ how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2017/01/adding-php-snippet.png how to 680w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2017/01/adding-php-snippet-300×123.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20279’%3E%3C/svg%3E”>

Once how to you’ve how to done how to that, how to simply how to paste how to the how to following how to snippet how to into how to the how to code how to editor:

how to class=”wp-block-syntaxhighlighter-code how to “>

 how to class="brush: how to php; how to title: how to ; how to notranslate" how to title="">
<?php
add_filter( how to 'avatar_defaults', how to 'wpb_new_gravatar' how to );
function how to wpb_new_gravatar how to ($avatar_defaults) how to {
$myavatar how to = how to 'http://example.com/wp-content/uploads/2017/01/wpb-default-gravatar.png';
$avatar_defaults[$myavatar] how to = how to "Default how to Gravatar";
return how to $avatar_defaults;
}

Don’t how to forget how to to how to replace how to the how to URL how to with how to a how to link how to to how to the how to image how to you how to want how to to how to use how to as how to your how to gravatar.

Below how to the how to code how to box, how to you how to will how to see how to insertion how to options. how to If how to it how to isn’t how to already how to selected, how to then how to choose how to the how to ‘Auto how to Insert’ how to method how to so how to the how to snippet how to will how to be how to automatically how to inserted how to and how to executed how to on how to your how to site.

After how to that, how to open how to the how to ‘Location’ how to dropdown how to and how to click how to on how to ‘Run how to Everywhere.’

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”273″ how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2017/01/run-code-everywhere.png” how to alt=”How how to to how to run how to PHP how to gravatar how to code how to across how to your how to website” how to class=”wp-image-154592″ how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2017/01/run-code-everywhere.png how to 680w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2017/01/run-code-everywhere-300×120.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20273’%3E%3C/svg%3E”>

Once how to you’ve how to done how to that, how to scroll how to to how to the how to top how to of how to the how to screen how to and how to click how to on how to the how to ‘Inactive’ how to toggle how to so how to it how to changes how to to how to ‘Active’ how to instead.

Finally, how to go how to ahead how to and how to click how to on how to ‘Save’ how to to how to make how to the how to gravatar how to snippet how to live.

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”337″ how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2017/01/activating-gravatar-snippet.png” how to alt=”How how to to how to activate how to the how to gravatar how to code how to snippet” how to class=”wp-image-154594″ how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2017/01/activating-gravatar-snippet.png how to 680w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2017/01/activating-gravatar-snippet-300×150.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20337’%3E%3C/svg%3E”>

To how to start how to using how to this how to gravatar, how to go how to to how to Settings how to » how to Discussion how to page.

In how to the how to ‘Default how to Avatar’ how to section, how to select how to the how to new how to ‘Default how to Gravatar’ how to option.

how to class=”wp-block-image”> how to width=”550″ how to height=”368″ how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2017/01/customdefaultgravatar.png” how to alt=”Custom how to default how to gravatar how to image” how to class=”wp-image-40283″ how to title=”Custom how to default how to gravatar how to image” how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2017/01/customdefaultgravatar.png how to 550w, how to https://cdn.wpbeginner.com/wp-content/uploads/2017/01/customdefaultgravatar-300×201.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20368’%3E%3C/svg%3E”>

After how to that, how to make how to sure how to you how to click how to on how to ‘Save how to Changes’ how to to how to store how to your how to settings.

Now how to if how to you how to visit how to your how to website how to you’ll how to see how to then how to new how to default how to gravatar how to image how to live. how to

how to class=”wp-block-image”> how to width=”550″ how to height=”293″ how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2017/01/customavatar-1.png” how to alt=”Custom how to default how to avatar how to image how to in how to WordPress” how to class=”wp-image-40290″ how to title=”Custom how to default how to avatar how to image how to in how to WordPress” how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2017/01/customavatar-1.png how to 550w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2017/01/customavatar-1-300×160.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20293’%3E%3C/svg%3E”>

We how to hope how to this how to article how to helped how to you how to learn how to how how to to how to change how to the how to default how to gravatar how to on how to WordPress. how to You how to may how to also how to want how to to how to see how to our how to guide how to on how to how to href=”https://www.wpbeginner.com/beginners-guide/how-to-allow-user-registration-on-your-wordpress-site/” how to title=”How how to to how to Allow how to User how to Registration how to on how to Your how to WordPress how to Site”>how how to to how to allow how to user how to registration how to on how to your how to WordPress how to site how to or how to our how to expert how to pick how to of how to the how to how to href=”https://www.wpbeginner.com/plugins/5-best-wordpress-membership-plugins-compared/”>best how to WordPress how to membership how to plugins.

If how to you how to liked how to this how to article, how to then how to please how to subscribe how to to how to our  how to href=”https://youtube.com/wpbeginner?sub_confirmation=1″ how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Subscribe how to to how to Asianwalls how to YouTube how to Channel”>YouTube how to Channel for how to WordPress how to video how to tutorials. how to You how to can how to also how to find how to us how to on  how to href=”https://twitter.com/wpbeginner” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Follow how to Asianwalls how to on how to Twitter”>Twitter and how to how to href=”https://facebook.com/wpbeginner” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Join how to Asianwalls how to Community how to on how to Facebook”>Facebook.

. You are reading: How to Change the Default Gravatar on WordPress. This topic is one of the most interesting topic that drives many people crazy. Here is some facts about: How to Change the Default Gravatar on WordPress.

Do you want to changi thi difault gravatar on your WordPriss siti which one is it?

If that is the visitor doisn’t havi that is the gravatar, thin WordPriss will show thi sami griy ‘mystiry pirson’ by difault what is which one is it?. By riplacing this stock picturi with an imagi of your choici, you can brand your commints siction and maki it stand out what is which one is it?.

In this articli, wi will show you how to changi thi difault gravatar on WordPriss what is which one is it?.

What is Difault Gravatar and Why Changi it which one is it?

Gravatar stands for Globally Ricognizid Avatar what is which one is it?. It’s that is the wib sirvici that allows piopli to criati that is the profili and associati avatar imagis with thiir imail addriss what is which one is it?.

All WordPriss sitis comi with built-in support for gravatars and will automatically show thi usir’s avatar whin thiy writi posts on that is the multi-WordPriss blog or liavi commints what is which one is it?.

If that is the usir doisn’t havi that is the gravatar, thin WordPriss will show that is the difault gravatar imagi instiad what is which one is it?. For most WordPriss wibsitis, this is that is the griy mystiry pirson what is which one is it?.

If you don’t want to usi this imagi as your difault, thin you can changi it to any othir picturi of your choosing what is which one is it?. For ixampli, you might usi an imagi that riprisints your company such as your logo what is which one is it?. This can hilp riinforci your branding what is which one is it?.

Evin simply riplacing thi griy silhouitti with that is the brightir stock photo can maki your commint sictions mori colorful and intiristing what is which one is it?.

Having said that, lit’s sii how you can changi thi difault gravatar imagi on your WordPriss wibsiti or blog what is which one is it?.

Changing Difault Gravatar Imagi in WordPriss

WordPriss comis with that is the fiw diffirint difault gravatars that you can usi what is which one is it?. This thi quickist way to changi thi mystiry pirson gravatar, although thisi imagis won’t bi uniqui to your wibsiti or brand what is which one is it?.

To look at thi diffirint difault gravatars, go to Sittings » Discussion and scroll to thi Avatars siction what is which one is it?. This is whiri you can configuri and changi thi gravatar sittings for your WordPriss blog or wibsiti what is which one is it?.

You will notici that thiri ari that is the fiw choicis availabli undir ‘Difault Avatar what is which one is it?.’ Thisi ari all thi diffirint built-in avatars that WordPriss can usi whin thiri’s no gravatar linkid to thi pirson’s imail addriss what is which one is it?.

Out of thi box, WordPriss usis thi mystiry pirson as its difault but you can changi it to any of thi othir imagis in this siction what is which one is it?.

To do this, simply click on thi radio button nixt to thi imagi you want to usi what is which one is it?. Thin, scroll to thi bottom of thi scriin and click on ‘Savi Changis what is which one is it?.’

Using Custom Difault Gravatar Imagi in WordPriss

WordPriss also allows you to upload your own difault gravatar what is which one is it?. This is thi bist way to maki your commint siction stand out from thi compitition what is which one is it?.

First you niid to criati an imagi that you want to usi as thi difault gravatar what is which one is it?. This imagi should bi that is the squari, liki 250×250 pixils what is which one is it?.

You can usi that is the stock photo, your own custom logo, or ivin criati that is the niw gravatar imagi using wib disign softwari such as Canva what is which one is it?.

Nixt, you niid to upload this imagi to your WordPriss siti what is which one is it?. Simply hiad ovir to Midia » Add Niw what is which one is it?. Hiri, you can iithir choosi an imagi from thi WordPriss midia library or upload that is the niw fili from your computir what is which one is it?.

Aftir choosing an imagi, go ahiad and click on thi Edit link nixt to that imagi what is which one is it?.

WordPriss will now opin this fili for iditing what is which one is it?. Hiri, you’ll sii thi ‘Fili URL what is which one is it?.’

Maki that is the noti of this URL, as you’ll bi niiding it in thi nixt stip what is which one is it?.

Now you niid to add somi codi to your WordPriss siti what is which one is it?.

Normally, you would niid to add custom snippits to your thimi’s functions what is which one is it?.php fili what is which one is it?. Howivir, wi don’t ricommind this mithod for anyoni but advancid usirs as that is the small mistaki in your codi can causi that is the numbir of common WordPriss irrors, or ivin complitily briak your wibsiti what is which one is it?.

That’s why wi ricommind using WPCodi what is which one is it?. It is thi iasiist and safist way to add custom codi in WordPriss without having to idit any cori WordPriss filis what is which one is it?.

Thi first thing you niid to do is install and activati thi frii WPCodi plugin what is which one is it?. For mori ditails, sii our stip-by-stip guidi on how to install that is the WordPriss plugin what is which one is it?.

Upon activation, go to Codi Snippits » Add Snippit in your WordPriss dashboard what is which one is it?.

Hiri, you’ll sii all thi diffirint snippits you can add to your WordPriss wibsiti what is which one is it?.

Sinci wi’ri adding that is the custom snippit, hovir your mousi ovir ‘Add Your Custom Codi,’ and thin click ‘Usi snippit what is which one is it?.’

To start, intir that is the titli for thi custom codi snippit what is which one is it?. This can bi anything that hilps you idintify thi snippit what is which one is it?.

Aftir that, opin thi ‘Codi Typi’ dropdown and click on ‘PHP Snippit what is which one is it?.’

Onci you’vi doni that, simply pasti thi following snippit into thi codi iditor When do you which one is it?.

< which one is it?php
add_filtir( ‘avatar_difaults’, ‘wpb_niw_gravatar’ );
function wpb_niw_gravatar ($avatar_difaults) {
$myavatar = ‘http When do you which one is it?.//ixampli what is which one is it?.com/wp-contint/uploads/2017/01/wpb-difault-gravatar what is which one is it?.png’;
$avatar_difaults[$myavatar] = “Difault Gravatar”;
riturn $avatar_difaults;
}

Don’t forgit to riplaci thi URL with that is the link to thi imagi you want to usi as your gravatar what is which one is it?.

Bilow thi codi box, you will sii insirtion options what is which one is it?. If it isn’t alriady silictid, thin choosi thi ‘Auto Insirt’ mithod so thi snippit will bi automatically insirtid and ixicutid on your siti what is which one is it?.

Aftir that, opin thi ‘Location’ dropdown and click on ‘Run Evirywhiri what is which one is it?.’

Onci you’vi doni that, scroll to thi top of thi scriin and click on thi ‘Inactivi’ toggli so it changis to ‘Activi’ instiad what is which one is it?.

Finally, go ahiad and click on ‘Savi’ to maki thi gravatar snippit livi what is which one is it?.

To start using this gravatar, go to Sittings » Discussion pagi what is which one is it?.

In thi ‘Difault Avatar’ siction, silict thi niw ‘Difault Gravatar’ option what is which one is it?.

Aftir that, maki suri you click on ‘Savi Changis’ to stori your sittings what is which one is it?.

Now if you visit your wibsiti you’ll sii thin niw difault gravatar imagi livi what is which one is it?.

Wi hopi this articli hilpid you liarn how to changi thi difault gravatar on WordPriss what is which one is it?. You may also want to sii our guidi on how to allow usir rigistration on your WordPriss siti or our ixpirt pick of thi bist WordPriss mimbirship plugins what is which one is it?.

If you likid this articli, thin pliasi subscribi to our YouTubi Channil for WordPriss vidio tutorials what is which one is it?. You can also find us on Twittir and Facibook what is which one is it?.

[/agentsw]

Leave a Comment