Posts Tagged ‘wordpress styles’

Removing Gravatars/Avatars in WordPress 2.7+ Themes

Monday, July 19th, 2010

In WordPress 2.7, the wp_list_comments function was introduced, putting all of the elements of comments in one easy function. The new function comes with an imitation of the old get_avatar function built-in.

So how do you remove the avatars without removing the wp_list_comments function, which is much needed for outputting all of the other elements of the comment section?

The answer is to use CSS to hide the avatar. Place the following code into style.css:

.avatar {
display:none;
}

Hat tip: rhysboy84 from Sitepoint.