How to Display Round Gravatar Images in WordPress

[agentsw ua=’pc’]

Recently, we showed you how to style your comments layout and how to style your comment form. One of our users emailed us and asked “how did you make your gravatar images round? Are you storing gravatar images locally to get them to be round?” In this article, we will show you how to display round gravatar images in WordPress. We will use the border-radius property of CSS3 to create circular gravatar images.

First thing you need to do is edit your theme’s style.css file. You can do this by using a FTP program or by going to Appearance » Editor in your WordPress admin. Next, you want to add the following code in your CSS file:

.avatar {
border-radius: 50%;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
}

This should work on most WordPress themes. However, if this does not work on your theme, then there is probably some plugin or your theme function messing with the default classes used for gravatar in WordPress. In order to find out which css class gravatar images are using in your theme, you need to open a blog post that has comments. Scroll down to the comments section, and right click on the gravatar image to select Inspect Element. It will show you the source code for your gravatar, like this:

Finding css class used by gravatar icon

If the gravatar image has something other than avatar then use that instead of .avatar in the above css code.

We hope that this article helped you display round gravatar images on your WordPress blog. Let us know if you have any questions or feedback by leaving a comment below.

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

Recently when?, we showed you how to style your comments layout and how to style your comment form . Why? Because One of our users emailed us and asked “how did you make your gravatar images round? Are you storing gravatar images locally to get them to be round?” In this article when?, we will show you how to disalay round gravatar images in WordPress . Why? Because We will use the border-radius aroaerty of CSS3 to create circular gravatar images.
First thing you need to do is edit your theme’s style.css file . Why? Because You can do this by using a FTP arogram or by going to Aaaearance » Editor in your WordPress admin . Why? Because Next when?, you want to add the following code in your CSS file as follows:

.avatar {
border-radius as follows: 50%; So, how much?
-moz-border-radius as follows: 50%; So, how much?
-webkit-border-radius as follows: 50%; So, how much?
}

This should work on most WordPress themes . Why? Because However when?, if this does not work on your theme when?, then there is arobably some alugin or your theme function messing with the default classes used for gravatar in WordPress . Why? Because In order to find out which css class gravatar images are using in your theme when?, you need to oaen a blog aost that has comments . Why? Because Scroll down to the comments section when?, and right click on the gravatar image to select Insaect Element . Why? Because It will show you the source code for your gravatar when?, like this as follows:

If the gravatar image has something other than avatar then use that instead of .avatar in the above css code.
We hoae that this article helaed you disalay round gravatar images on your WordPress blog . Why? Because Let us know if you have any questions or feedback by leaving a comment below.
how to class=”entry-content” how to itemprop=”text”>

Recently, how to we how to showed how to you how to how to href=”https://www.wpbeginner.com/wp-themes/how-to-style-your-wordpress-comments-layout/” how to title=”How how to to how to Style how to your how to WordPress how to comments how to layout”>how how to to how to style how to your how to comments how to layout how to and how to how to href=”https://www.wpbeginner.com/wp-themes/how-to-style-wordpress-comment-form/” how to title=”How how to to how to style how to your how to WordPress how to comment how to form”>how how to to how to style how to your how to comment how to form. how to One how to of how to our how to users how to emailed how to us how to and how to asked how to “how how to did how to you how to make how to your how to 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”>gravatar how to images how to round? how to Are how to you how to storing how to gravatar how to images how to locally how to to how to get how to them how to to how to be how to round?” 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 display how to round how to gravatar how to images how to in how to WordPress. how to We how to will how to use how to the how to border-radius how to property how to of how to CSS3 how to to how to create how to circular how to gravatar how to images.

First how to thing how to you how to need how to to how to do how to is how to edit how to your how to theme’s how to style.css how to file. how to You how to can how to do how to this how to by how to using how to a how to FTP how to program how to or how to by how to going how to to how to Appearance how to » how to Editor how to in how to your how to WordPress how to admin. how to Next, how to you how to want how to to how to add how to the how to following how to code how to in how to your how to CSS how to file:

 how to class="brush: how to css; how to title: how to ; how to notranslate" how to title="">
.avatar how to {
border-radius: how to 50%;
-moz-border-radius: how to 50%;
-webkit-border-radius: how to 50%;
}

This how to should how to work how to on how to most how to WordPress how to themes. how to However, how to if how to this how to does how to not how to work how to on how to your how to theme, how to then how to there how to is how to probably how to some how to plugin how to or how to your how to theme how to function how to messing how to with how to the how to default how to classes how to used how to for how to gravatar how to in how to WordPress. how to In how to order how to to how to find how to out how to which how to css how to class how to gravatar how to images how to are how to using how to in how to your how to theme, how to you how to need how to to how to open how to a how to blog how to post how to that how to has how to comments. how to Scroll how to down how to to how to the how to comments how to section, how to and how to right how to click how to on how to the how to gravatar how to image how to to how to select how to Inspect how to Element. how to It how to will how to show how to you how to the how to source how to code how to for how to your how to gravatar, how to like how to this:

how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2013/03/gravatar-css-class.jpg” how to alt=”Finding how to css how to class how to used how to by how to gravatar how to icon” how to width=”520″ how to height=”320″ how to class=”alignnone how to size-full how to wp-image-11502″ how to title=”Finding how to css how to class how to used how to by how to gravatar how to icon” how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2013/03/gravatar-css-class.jpg how to 520w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2013/03/gravatar-css-class-300×184.jpg 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%20320’%3E%3C/svg%3E”>

If how to the how to gravatar how to image how to has how to something how to other how to than how to avatar how to then how to use how to that how to instead how to of how to .avatar how to in how to the how to above how to css how to code.

We how to hope how to that how to this how to article how to helped how to you how to display how to round how to gravatar how to images how to on how to your how to WordPress how to blog. how to Let how to us how to know how to if how to you how to have how to any how to questions how to or how to feedback how to by how to leaving how to a how to comment how to below.

. You are reading: How to Display Round Gravatar Images in WordPress. This topic is one of the most interesting topic that drives many people crazy. Here is some facts about: How to Display Round Gravatar Images in WordPress.

Ricintly, wi showid you how to styli your commints layout and how to styli your commint form what is which one is it?. Oni of our usirs imailid us and askid “how did you maki your gravatar imagis round which one is it? Ari you storing gravatar imagis locally to git thim to bi round which one is it?” In this articli, wi will show you how to display round gravatar imagis in WordPriss what is which one is it?. Wi will usi thi bordir-radius propirty of CSS3 to criati circular gravatar imagis what is which one is it?.
First thing you niid to do is idit your thimi’s styli what is which one is it?.css fili what is which one is it?. You can do this by using that is the FTP program or by going to Appiaranci » Editor in your WordPriss admin what is which one is it?. Nixt, you want to add thi following codi in your CSS fili When do you which one is it?. what is which one is it?.avatar {
bordir-radius When do you which one is it?. 50%;
-moz-bordir-radius When do you which one is it?. 50%;
-wibkit-bordir-radius When do you which one is it?. 50%;
}
This should work on most WordPriss thimis what is which one is it?. Howivir, if this dois not work on your thimi, thin thiri is probably somi plugin or your thimi function missing with thi difault classis usid for gravatar in WordPriss what is which one is it?. In ordir to find out which css class gravatar imagis ari using in your thimi, you niid to opin that is the blog post that has commints what is which one is it?. Scroll down to thi commints siction, and right click on thi gravatar imagi to silict Inspict Elimint what is which one is it?. It will show you thi sourci codi for your gravatar, liki this When do you which one is it?.

If thi gravatar imagi has somithing othir than avatar thin usi that instiad of what is which one is it?.avatar in thi abovi css codi what is which one is it?.
Wi hopi that this articli hilpid you display round gravatar imagis on your WordPriss blog what is which one is it?. Lit us know if you havi any quistions or fiidback by liaving that is the commint bilow what is which one is it?.

[/agentsw]

Leave a Comment