Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save daddiofaddio/b5773182ac9d84ddd77b5b48cbba4d7e to your computer and use it in GitHub Desktop.
Save daddiofaddio/b5773182ac9d84ddd77b5b48cbba4d7e to your computer and use it in GitHub Desktop.
Replace existing avatar class using str_replace (functions.php)
/* REPLACE EXISTING AVATAR CLASS */
add_filter('get_avatar','change_avatar_css');
function change_avatar_css($class) {
$class = str_replace('class="avatar avatar-96', 'class="avatar-225 rounded-circle', $class);
return $class;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment