Change Default Gravatar to Your Choice in WordPress


To brand your blog, you need to take care of all minute things including Default Gravatar (Mystery Man), which is annoying to most readers. This simple tutorial will help you change your Default Gravatar shown on your blog to a custom image.

Procedure:

Note: Do take backup of your theme before you try this.

01. Upload a 48 x 48px image to your theme directory.

02. In your WordPress Admin panel go to Appearance => Editor.

02. Then choose functions.php file from right hand side and add below code:

add_filter( 'avatar_defaults', 'newgravatar' );

function newgravatar ($avatar_defaults) {
$myavatar = get_bloginfo(‘template_directory’) . ‘/images/tutzonegravatar.jpg‘;
$avatar_defaults[$myavatar] = “TutZone“;
return $avatar_defaults;
}

03. In above code change /images/tutzonegravatar.gif to the location/name of your image and TutZone to name of the Avatar which will be shown in your Options Panel and Save file.

04. Now go to Settings => Discussion and change your default Gravatar to a custom one:

That concludes this simple and useful tutorial. Hope you like it.

  • Halaman

  • October 2010
    M T W T F S S
    « Sep   Nov »
     123
    45678910
    11121314151617
    18192021222324
    25262728293031
  • RSS 20 Newest Free

  • RSS Brothersoft

  • RSS New Software

  • AntiVirus

  • Status Anda

    IP
  • Pengunjung

    free counters
  • Blog Stats

    • 328,438 hits
  • Add to Google Reader or Homepage Subscribe in NewsGator Online Add to netvibes Subscribe in Bloglines Add to fwicki Add to Webwag Powered by FeedBurner

  • Friends Link

  • RSS Kompas

    • An error has occurred; the feed is probably down. Try again later.
  • RSS Lowongan Kerja Terbaru 2013

    • An error has occurred; the feed is probably down. Try again later.
  • RSS Loker.id

  • Info Tentang AQ

  • Meta

  • %d bloggers like this: