Quick Tip: Rounded Avatars

The Goal: Rounded Avatars

The default avatar images in our themes are rectangular.  But, its easy to make them “rounded”.  i.e.: you can go from this:

 

to this:

The Solution: CSS

The trick is to add a CSS rule to set the border radius of the image to 50%.  To do this you can add this CSS rule to your theme:

/* Make avatars round */
#spMainContainer .spAvatar {
border-radius: 50%;
}

There are a number of ways to add this rule to your WordPress theme.  We will discuss two of them here – the easiest options

Option #1: Add it directly to the Custom CSS area in Simple:Press

Simple:Press does give you an option to add CSS to your Simple:Press theme.  Just go to FORUM->THEMES->CUSTOM CSS

There, you can paste the CSS code from above into the text box and click the UPDATE CSS button.  Your screen should look similar to this one:

After making these changes you should clear your caches, if any. This includes our local cache (wp-rocket for example) as well as your CDN cache such as Cloudflare.

Option #2:  Use the WordPress Customizer

For most modern WordPress themes you can add CSS via the WordPress customizer – which you can access from the main WordPress menu: APPEARANCE->CUSTOMIZE.

Locate the Additional CSS option in the customizer and add the above CSS.

If you have other custom CSS that are using and prefer to keep all your CSS changes in one place, then this is a good option.  However, if you switch WordPress themes you will lose your custom css and have to re-apply it in the new theme.  (Which is why the recommended approach for CSS is to load up your own style sheet but that is outside the scope of this “quick tip” article.)

Read Next

Did you find this article useful? Or do you use Simple:Press today?  If so, please support Simple:Press with a review on WordPress.org.  Every review goes a long way towards bringing other users on board!

Click here to review Simple:Press on wordpress.org

More From Simple:Press

Security Release: Simple:Press Version 6.8.1

October 25, 2022

A researcher out of Germany, Laokoon Security, recently reported a couple of security related issues they uncovered during an audit for one of their clients. These issues have been resolved in Simple:Press V 6.8.1. If you’re running any version earlier than this you should upgrade ASAP. If for some reason you’re still running Version 5.x…

Read More

Simple:Press Release 6.6.6

March 14, 2022

WordPress 5.9 is the gift that keeps on giving… This time around we’ve had to patch the drag-and-drop JS component in it to make it compatible. Upgrade to Simple:Press 6.6.6 to get the fix. The update should be in your WordPress automatic updates page. We’ve tested the fix with WP 5.8 and 5.9 but not…

Read More

WordPress 5.9 & Simple:Press Forums

February 18, 2022

WordPress 5.9 introduced a new type of theme – the Full Site Editing theme where all components of the theme (including headers and footers) are blocks. This is a radical change to WordPress themes. But, the good news for Simple:Press is that we can still work with these new themes with a couple of minor…

Read More

Simple:Press Forums – Minor Releases 6.6.1 – 6.6.3

June 20, 2021

Simple:Press forums 6.6.x was released a few months ago and since then we have pushed a number of minor releases to tweak some things. These are the changes that were made: 6.6.3 Tweak Add a new overlay to the default 2020 theme to match the WP 2021 theme. The new overlay is the default on…

Read More