Hi there !
If you like to follow the look and styling of the Customizr rounded images for featured pages and post thumbnails here is how you can turn your square user images (gravatar and local) to rounded ones, or just with rounded corners. It will affect user images in comments and author-info boxes too.
Where to copy/paste this code? The simpliest way is to use the Custom CSS section of the customizer option screen. If you have many customizations to make in CSS and PHP, then a strongly recommend to create a child theme. Everything you need to know about child theme with Customizr here.
.avatar { border-radius: 50%; -moz-border-radius: 50%; -webkit-border-radius: 50%; }
If you want to round only image (gravatar) in author info box then you should use
.author-avatar .avatar { border-radius: 50%; -moz-border-radius: 50%; -webkit-border-radius: 50%; }
To be more fancy, you could add border around image by adding line bellow in existing rule, e.g.:
border: solid 2px silver;
To achieve only rounded corners on square avatar image you need to change border-radius value to, let me say, 10%.
21 thoughts on “Rounded user avatars”
Thanks! This really spiffed things up!
My avatars are not showing on the pages or posts especially in the comments. Help would be greatly appreciated. Thank You
Figured it out……….. stupid avatar checkbox was unchecked sry…………… Great Theme tho
Thank you for the code. Nicolas you may should use as default in your theme 😉
In my snippet, I add
“box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
to get a nice shadow below the avatar.
Thanks for this contribution Kay.
Greetings
I am using featured images for posts in a category. Can I have different thumbnail size (than 250 x 270) for the rounded image?
Also I am getting a secondary loop of header portion after the footer when I activate nextgen gallery plugin. Any fixes?
Hi Gautham,
You can easily change the default thumbnail size with a specific filter : ‘tc_thumb_size’.
About the Nextgen gallery issue, it is fixed in the next version. Already available here.
Thanks
Hello, I’m really new in building pages and I love your Customizr theme.
Maybe this is a lazy question but I really couldn’t find were to add my avatar…
Could you please help me?
Thank you!
Hi Silvia,to get an avatar, go on gravatar.com and create an account with your choosen avatar. Then the email adress used to create your account in gravatar will be linked to this avatar everywhere.
Hope this helps
@Nicolas, I have activated following component other than default
WordPress.com Stats, Publicize,Jetpack Comments,Carousel(I don’t know how to deactivate it), Sharing,Gravatar Hovercards, WordPress.com Connect.
That’s all!
Hello,
I have the same problem of compatibility between Customizr and JetPack. For rounded thumbnails, It seems that the problem come from the Jetpack module Photon : when I deactivate it, thumbnail are rounded, whereas they are squared when the module is activated.
Thanks for this feedback Lucho : I will definitely work on a compatibility patch for that. It is now in the to do list!
Ok, thanks for your quick reply.
If you look at the compatibility with Jetpack, can you also look at this other issue : when jetpack extension is active, lightbox effect does not work anymore on galleries (the image is simply shown inside a new page), but still work on individual image. I do not found the module that cause this issue (even when deactivating the galley module of Jetpack), but when I deactivate Jetpack, the lightbox effect work again on gallery images.
Thanks
Thanks for this feedback @dhananjay
I tried to deactivate jetpack Now Rounded thumbnails work. But a lot depend on Jetpack for me
Hi Dhananjay, Jetpack should be compatbile with the theme. Can you please tell which component of Jetpack you’ve activated?
Thanks
Nicolas, Thanks at first for this incredible Wordpress theme and more thanks for the support you render.
Is Customizr rounded images for post thumbnails a default setting or I have to activate it somewhere? Because in my blog post thumbnail is neither showing rounded image nor that cool zoom animation. I am longing for them. Please help!
Hi There,
How can I remove the little “grey book vector” from each page that is to the left of the title?
Hi Alissa, you might want to check this snippet to remove the page icon in Customizr
Enjoy the theme