Forums

How do I change the default thumbnail? (3 posts)

  1. zozzoozzz
    Member
    Posted 2 years ago #

    How do I change the default thumbnail?

    please see at:

    http://www.gravatar.com/avatar/ad516503a11cd5ca435acc9bb6523536?s=32

    Thanks in advance.

  2. blondishnet
    Member
    Posted 2 years ago #

    Well, if you registered at Gravatar.com for an account, when using the email you register there, it will show the avatar you loaded to your Gravatar account.

    However, if you meant from within the WordPress admin panel and the several default gravatar choices you can select from:

    1. Open your template's functions.php

    2. Insert the following code:

    add_filter( 'avatar_defaults', 'newgravatar' );
    function newgravatar ($avatar_defaults) {
    $myavatar = get_bloginfo('template_directory') . '/images/yournewgravatar.jpg';
    $avatar_defaults[$myavatar] = "Your New Gravatar";
    return $avatar_defaults;
    }

    3. Change where younewgravatar.jpg to the image you want and change the following text, Your New Gravatar to the name you wish to have your new default avatar be called.

  3. zozzoozzz
    Member
    Posted 2 years ago #

    Thanks u very much!

    I'll try it at once.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.