inserting default comment avatar

Can you help me correct the missing default avatar? I have one uploaded in Comments Plus settings [16x16], but I'd been having problems with the WP comment avatar since trying to hack my custom.php file. I deleted the hack, but the mystery man and other WP avatars were never restored.

Here is a post with comments using Comments Plus.

Thanks for the help!


  • ericahm
    • Flash Drive


    This is the code I added then deleted in custom.php:

    add_filter( 'avatar_defaults', 'new_avatar' );
    function new_avatar($avatar_defaults){
    $new_avatar = get_stylesheet_directory_uri() . '/images/avatar_logo.png';
    $avatar_defaults[$new_avatar] = "lovelinks logo";
    return $avatar_defaults;


    The actual plugin is working fine. But the hack above is blocking my WP avatars, so I'm asking for help in fixing my screw up :slight_smile:

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.