• One of our admin avatars are not showing up on comments. We have a default custom avatar setup for comments for the site if people do not have a custom avatar like a Gravitar, and our one admin has a custom avatar set in the User settings, but the custom site avatar (an acorn) is shown next to his name (Craig) in comments. My custom gravitar shows up next to my test comment down below (David). His avatar shows up in the dashboard next to his name in the Users listings and in the author block on posts (a garden photo which you can see at the end of the post). We want his avatar to show up in the comments.

    Here is the function code I have on the site to have a custom avatar for all users without avatars. Could someone give me some advice on what we might or might not be doing wrong. The fact my gravitar shows up shows that a custom avatar should work.

    Theme is Mai Lifestyle.

    // Add custom avatar
    add_filter( 'avatar_defaults', 'newgravatar' );
    
        function newgravatar ($avatar_defaults) {
        $myavatar = get_bloginfo('stylesheet_directory') . '/images/sb-acorn2017-avatar.jpg';
        $avatar_defaults[$myavatar] = "GSML Default Avatar";
        return $avatar_defaults;
    }
    • This topic was modified 4 years, 8 months ago by David Borrink.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Admin user avatar not showing up in comments’ is closed to new replies.