Removing Gravatar from a theme
-
https://colorlightstudio.com/2007/11/20/cubismo/
That’s the theme I use. I find it great but I don’t like the Gravatars at all and would like to remove them. Changing the default avatar from the WP control panel doesn’t work with this theme and I still see nothing but default Gravatars (blue ones with a white letter “G”) in my comments.
I also really like the Wavatars and would like to use them instead of the Gravatars – is there a way? Could you please help me?
Thank you in advance!
And those are the gravatar-related lines I found in the theme’s source:
===================================
===================================
style.css.comment_wrap img.gravatar {
float: right;
margin-top: 5px;
margin-right: -8px;
border: 0 !important;
position: relative;
}
===================================
===================================
comments.php<img src=”<?php gravatar(‘X’, ’40’); ?>” alt=”<?php //_e(‘Gravatar’); ?>” class=”gravatar” />
===================================
===================================
functions.phpfunction gravatar($rating = false, $size = false, $default = false, $border = false) {
global $comment;
$out = “https://www.gravatar.com/avatar.php?gravatar_id=”.md5($comment->comment_author_email);
if($rating && $rating != ”)
$out .= “&rating=”.$rating;
if($size && $size != ”)
$out .=”&size=”.$size;
if($default && $default != ”)
$out .= “&default=”.urlencode($default);
if($border && $border != ”)
$out .= “&border=”.$border;
echo $out;
===================================
===================================
- The topic ‘Removing Gravatar from a theme’ is closed to new replies.