Problem Changing Default Avatars
-
I am trying to change the default avatars for my site. I have used this code:
// Add a default avatar to Settings > Discussion if ( !function_exists('fb_addgravatar') ) { function fb_addgravatar( $avatar_defaults ) { $myavatar = get_bloginfo('template_directory') . '/images/avatar.jpg'; $avatar_defaults[$myavatar] = 'Doc4'; return $avatar_defaults; } add_filter( 'avatar_defaults', 'fb_addgravatar' ); } ?>
Everything seems to be working as the name of the new avatar shows up in the discussion settings and in the source code the href of my image is correct. But alas no image shows up. The new default shows up as blank.
And yes, I have named it avatar.jpg and placed it in the templates images file.
Any ideas?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Problem Changing Default Avatars’ is closed to new replies.