I've searched google quite a bit and every site has the same filter but it doesn't seem to be working for me. Not sure if it's my setup or just old code.
I'm trying this:
add_filter( 'avatar_defaults', 'newgravatar' );
function newgravatar ($avatar_defaults) {
$myavatar = get_bloginfo('template_directory') . '/img/blog_noPhoto.jpg';
$avatar_defaults[$myavatar] = "Default Avatar";
return $avatar_defaults;
}
However, when I look at my template code it's adding http://0.gravatar.com/avatar/?d= before the full URL of the image. I am using the "User Avatar" plugin but it seemed to be the same if I disabled that.