Viewing 1 replies (of 1 total)
  • Thread Starter Sara_

    (@sara_)

    Sorry, I’ve found a solution, insert a short code into the file Funtions.php the end of our theme.

    <?php
    if ( !function_exists(‘fb_addgravatar’) ) {
    function fb_addgravatar( $avatar_defaults ) {
    $myavatar = get_bloginfo(‘template_directory’) . ‘/images/gravatar.png’;
    $avatar_defaults[$myavatar] = ‘Custom’;
    return $avatar_defaults;}
    add_filter( ‘avatar_defaults’, ‘fb_addgravatar’ );}
    ?>

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