• I want to use my own default avatar, I’ve tried all of the solutions, but my internet is too slow to load gravatar, so no matter what I do I get the broken image link. Here is my code:

    /* Powerusers Gravatar
    /* ----------------------------------------------*/
    add_filter( 'avatar_defaults', 'newgravatar' );  
    
    function newgravatar ($avatar_defaults) {
         $myavatar = get_bloginfo('template_directory') . '/images/no-image.gif';
         $avatar_defaults[$myavatar] = "Powerusers Gravatar";
         return $avatar_defaults;
    }

Viewing 1 replies (of 1 total)
  • Thread Starter 4myGod

    (@4mygod)

    Ugh, well sure enough like most coding problems, the problem wasn’t what I thought it was, and it’s working now without me changing the code. Apparently my internet being slow was preventing the loading. Thanks everyone who read this and was considering replying.

Viewing 1 replies (of 1 total)
  • The topic ‘default avatar image’ is closed to new replies.