• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Nile Flores Media

Helping You Rock Out Your Website Like A Rockstar

  • Home
  • About
  • Blog
  • Portfolio
  • Hire Me
  • Resources
  • Contact
  • Blogging
  • WordPress
  • Social Media
  • SEO
  • Web Design
  • News
  • Podcast
You are here: Home » WordPress » How to Change The WordPress Default Avatar

How to Change The WordPress Default Avatar

By Nile Flores 8 Comments


Sometimes that default Gravatar with the gray and white seems boring. Lucky for you, instead of altering internal WordPres files, you can harness the power of adding a filter to your theme’s functions.php to change your default image to display.

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.


Filed Under: WordPress Tagged With: wordpress, wordpress avatar, wordpress tricks

About Nile Flores

Nile is a 43-year old female from the greater St. Louis (Southern Illinois side) area. Nile is a mother of 1 son. She is also a web designer and developer, a graphic designer, and a public speaker, who exclusively designs and develops using WordPress. She also blogs at GoDaddy's Blog, Verpex Hosting's blog and her very personal sites, Pixelled and Nail Polish Happy.




Related posts:

Edit The Number Of Words For The Excerpt in WordPress Changing Your Username In WordPress Applying Author Gravatar In Post Comments Display First WordPress Full Entry and then Following as Excerpts Brand Your WordPress Login Page Without A Plugin

Reader Interactions

Comments

  1. james says

    November 8, 2011 at 10:45 am

    Actually i didn’t used gravatar and not very techie person but i think i’ve to learn this in case i need this in the future, thanks for sharing Nile.

    Reply
  2. Ricci Sionil says

    November 9, 2011 at 9:20 am

    Yes, the default color of wordpress avatar is so boring…How come they chose that color grey?…lifeless…

    Reply
  3. john says

    November 10, 2011 at 2:30 am

    I am going to share this tips write on my forum. Now I can change funky cartoon image of my own/

    Reply
  4. Bit Doze says

    November 10, 2011 at 11:59 am

    This is a good tip I wasn’t aware that you can do something like that in WordPress. Thanks for sharing.

    Dragos

    Reply
  5. marco says

    November 10, 2011 at 3:54 pm

    Hi, it took me some time, but I managed to get it done! Thanks for the tip!

    Reply
  6. Jordan says

    November 14, 2011 at 1:27 pm

    I think this is critical for people using WordPress for ‘real’ sites (not just blogs, though it’s important for them too). Nothing looks less polished than the standard little wordpress box in the header

    Reply
  7. Anonymous says

    November 25, 2011 at 3:10 am

    i love worpress because of thesis theme i can easily edit anything withou any problem , thanks for your tutorial .i am looking for this to change my wp default avatar

    Reply
  8. Itender Rawat says

    January 29, 2012 at 3:31 am

    Nice tip for WordPress Blog. Thanks author.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Follow Me On:

  • Facebook
  • Instagram
  • LinkedIn
  • Twitter
  • YouTube

Get The Latest WordPress & Blogging Tips

Sign up for my newsletter, and also get my free ebook on 10 Reasons Why Your Website Isn't Converting, and How to Fix it!




Try to be More Positive on Social Media

Note: You can click on image and view the video in a larger lightbox window.

Footer

The Blog

Lots of free information, tutorials, and more to help you bring your best foot forward with your website.

  • Blogging
  • WordPress
  • Social Media
  • SEO
  • Web Design

Get The Latest WordPress & Blogging Tips

Sign up for my newsletter, and also get my free ebook on 10 Reasons Why Your Website Isn't Converting, and How to Fix it!

Copyright © 2025 · · WordPress