Not working SOLUTION
-
If you are having an issue with custom default avatar not working and are using a child theme.
Use this code in functions.php instead:
function custom_avatar_defaults ( $avatar_defaults ) { $avatar_url = get_stylesheet_directory_uri() . '/images/avatar.png'; $avatar_defaults[$avatar_url] = __( 'Custom Default Avatar', 'mytextdomain' ); return $avatar_defaults; } add_filter( 'avatar_defaults', 'custom_avatar_defaults' );
Basically, trade
get_bloginfo('template_directory')
forget_stylesheet_directory_uri()
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Not working SOLUTION’ is closed to new replies.