Skip to content

Instantly share code, notes, and snippets.

@JohnBunka
Created June 21, 2015 02:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save JohnBunka/faf4b49a85db3877f0e5 to your computer and use it in GitHub Desktop.
Genesis: Display a custom Gravatar
//* Display a custom Gravatar
add_filter( 'avatar_defaults', 'sp_gravatar' );
function sp_gravatar ($avatar) {
$custom_avatar = get_stylesheet_directory_uri() . '/images/gravatar.png';
$avatar[$custom_avatar] = "Custom Gravatar";
return $avatar;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment