WordPress.org

Ready to get started?Download WordPress

Forums

Social
[resolved] Gravatar default (2 posts)

  1. Sara_
    Member
    Posted 1 year ago #

    Hello:
    I have any question, Social not choose the default Gravatar. It is possible change it?

    Thanks.

    http://wordpress.org/extend/plugins/social/

  2. Sara_
    Member
    Posted 1 year ago #

    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' );}
    ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic