WordPress.org

Ready to get started?Download WordPress

Forums

Default Avatar doesn't follow admin setting (2 posts)

  1. Invex09
    Member
    Posted 4 years ago #

    I set my default avatar (for those users that don't have an avatar) to be the mystery man but for some reason the Gravatar logo is being used as the default avatar. I've tried clearing my cache but it still puts new users w/ no avatar as the Gravatar logo. Any ideas would be greatly appreciated!

    Thanks,
    Brian

  2. Steve
    Member
    Posted 4 years ago #

    Hi Brian,

    Depending on your theme you need to update either your comments.php or your functions.php file and remove the $default= part. Change

    <?php echo get_avatar($comment, $size='40', $default='<path_to_url>' ); ?>

    to

    <?php echo get_avatar( $comment, $size = '40' ); ?>

    Hope that helps.

Topic Closed

This topic has been closed to new replies.

About this Topic