• Home
  • Download Free eBook
  • OC Archives
  • Tools I Use
  • Webmaster Forum
  • Write For Us
Logo

  • Discounts
  • SEO Central
    • All other Search
    • Bing
    • Google Central
    • Yahoo
  • Social Networks
    • Digg
    • facebook
    • Squidoo
    • Technorati
    • Twitter
  • Web Design & Development
    • Ajax
    • Coding
    • Database
    • Graphic Design
    • Joomla
    • jQuery
    • OScommerce
    • Photoshop
  • Webmaster Central
    • Author's Corner
    • Case Studies
    • Content Writing
    • Featured Interviews
    • Guest Posts
    • Make Money Online
    • OC Promos
    • Premium Reviews
    • Video Tutorials
    • Web Hosting
    • Web News
    • Web Security
  • Wordpress

How to change your Default avatar in wordpress

Posted by Joshu Thomas on Nov 9, 2009 in Tutorials, Web Hosting, Wordpress | 9 comments

Adding a new avatar image to the default wordpress avatar called mystery man was always a new bloggers problem, Follow our tutorial and choose avatar which is more suitable to your theme.

Open your theme’s functions.php file and add this new function.

add_filter( 'avatar_defaults', 'newgravatar' );
function newgravatar ($avatar_defaults) {
$myavatar = get_bloginfo('template_directory') . '/images/my-gravatar.jpg';
$avatar_defaults[$myavatar] = "My Avatar";
return $avatar_defaults;
}

We are done. Using the add_filter function we changed the avat_default function a little bit, with newgravatar function. We added our new avatar in default wordpress avatar list. Change my-gravatar.jpg with your own. This file must be located in /images/ folder of your theme.

Now in order to change your default avatar go to Settings>Discussion and choose your image.

Cheers, Joshu


About Joshu Thomas

I enjoy blogging about webmaster related stuff and technology. Xtras - I Design, Develop, Blog and Support the Open Source. Passions: I Love Music, Photography, Design, Development, Cycling, Travelling.

Related Articles You Are Probably Interested In:

  1. How to change the Default WordPress Login Logo
  2. How to change WordPress Theme folder Name
  3. Change the WordPress default email sender
  4. How to hide a category posts from the wordpress homepage
  5. All WordPress Theme Files Explained! : How to edit from admin
  6. Learn how to upload files to website FTP
  7. Optimize your images in wordpress effectively
  8. Free Magento Themes / Templates Download: updated list

9 Responses to “How to change your Default avatar in wordpress”

  1. Web design Hyderabad says:
    November 9, 2009 at 8:35 pm

    Exactly what i was searching for.
    Also do you know can these be done automatically by any plugins ?

    Do let me know ….

    Reply
    • admin says:
      November 9, 2009 at 8:37 pm

      Hey !

      Infact this is the simplest method, And plugins are there, they will only allow your memebrs to add local avatars at the time of posting. (as far as i know)
      Do this and easly add more and more avatars !
      Cheers, Josh

      Reply
  2. Web design Hyderabad says:
    November 9, 2009 at 8:35 pm

    Exactly what i was searching for.
    Also do you know can these be done automatically by any plugins ?

    Do let me know ….

    Reply
    • admin says:
      November 9, 2009 at 8:37 pm

      Hey !

      Infact this is the simplest method, And plugins are there, they will only allow your memebrs to add local avatars at the time of posting. (as far as i know)
      Do this and easly add more and more avatars !
      Cheers, Josh

      Reply
  3. Kevin Ronnie says:
    February 3, 2010 at 11:13 am

    i did not quiet get this working on changing the mistery man avatar, could you help me a lil further josh, ?

    -kevin

    Reply
  4. Kevin Ronnie says:
    February 3, 2010 at 4:43 pm

    i did not quiet get this working on changing the mistery man avatar, could you help me a lil further josh, ?

    -kevin

    Reply
  5. AutoInsuranceGroup says:
    March 14, 2010 at 6:14 pm

    The webpage is actually full of outstanding detail and is actually really exciting to read.

    Properly done.

    Reply
  6. AutoInsuranceGroup says:
    March 14, 2010 at 11:44 pm

    The webpage is actually full of outstanding detail and is actually really exciting to read.

    Properly done.

    Reply
  7. ♥nodame♥ says:
    April 2, 2010 at 2:29 pm

    Out of all of the sites that I've been too, this is the only one that actually made sense, and got my site to show custom avatars without messing up the code x_x

    THANK YOU!

    Reply

Leave a Reply Cancel reply

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

*

*

CAPTCHA Image
Refresh Image

*

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 Subscribe to OC Blog! 

Subscribe to OC Blog

Stay tuned to the Latest updates and tips in the Webmaster World




Most Popular Posts

  • List of High PR do follow blogs (Verified) (365)
  • Next Google Page rank - PR update 2011 (288)
  • Market Samurai Discount – Save 80 USD! (244)
  • 300 High paying adsense keywords 2011 (112)
  • List of High PR Dofollow Directories 2011 (104)
  • Best Classifieds Ads Scripts (87)
  • 22 OpenSource Forum Scripts - Details and Download: update list (83)
  • Next Google PageRank update 2012 (77)
  • Review of the List of the Best Social Networking websites 2011 (73)
  • How to modify the Wordpress comment Form (70)
  • List of 200 Highest paying Adsense Keywords : Updated list 2010 (54)
  • Featured Interviews: Harsh Agarwal from ShoutMeLoud.com (49)
  • One of the Biggest SEO Secret for Linkbuilding (48)
  • 10 Best Premium Wordpress Plugins (46)
  • Elegant Themes Discount 2011 (Save 10 USD) (44)
  • List of all Top Social Networking websites as on 2010 (42)
  • How i earn Big Bucks from my blog Doing Nothing! (42)
  • 30 Best wordpress Plugins required for Any WP Blog (39)
  • Download KeywordLuv WordPress Plugin (39)
  • 12 Best Paying Affiliate Networks (39)
  • +Joshu Thomas

    • Founder of OrangeCopper Webmaster Networks, Writes for our latest Launch of 2011 - HippieMonk Tech & LifeStyle Blog!
About OrangeCopper Network 

Who am I? Am Joshu. I enjoy blogging about webmaster related stuff and technology. Xtras - I Design, Develop, Blog and Support the Open Source. Passions: I Love Music, Photography, Design, Development, Cycling, Travelling and sleeping (Favorite)

What i could do for you: Ive been working on various shades of the web for over 11 years now and learned the hard way, Now i could help you learn it the Easy way. OrangeCopper is a Webmaster community that i started in the year 2002 and is now a platform for webmasters around the world. Thankyou for spending your time to visit Blog. I would love to get connected every webmaster reading this, follow me on Twitter and i would auto follow you. Thanks again, Happy Surfing!

Interested to Learn Professional Blogging? Check out my NapIncome Blog where I share all the secrets to build a professional blog and earn money from ProBlogging.

Please Subscribe to the Blog Newsletter to get regular weekly update
Twitter: http://www.twitter.com/orangecopper | Subscribe to feeds : http://feeds.feedburner.com/orangecopper/ilRl

Other OrangeCopper Network Websites

ConnectRing Web Directory | UsedMobiles.in | UsedGadgets.in | NapIncome Strategy Blog | HippieMonk Technology Blog | All Good WordPress Themes | PixelTribes Photography Blog | Yscream Web Hosting

Favorite Articles

  • List Of Best Classifieds Ads Scripts Ever (Free & premium)
  • How to triple your Blog Subscription rates / opt-ins – It Worked for me!
  • You can certainly spend Half a Dollar For creating a GREAT Blog
  • How i earn Big Bucks from my blog Doing Nothing!
  • 35 best free wordpress themes for download: updated list 2010
  • 22 Web 2.0 Colors and their codes in HTML
  • 48+ web Design Related Twitter Accounts To Follow
  • Make a web 2 icon with Photoshop in easy 8 steps
  • List of 62 Free Press Release websites

    Most Rated Articles

  • Compare WordPress – Joomla – Drupal and their features
  • 7 Excellent jQuery menus and jQuery examples and downloads
  • 5 Most Important To Do s for a New Blog Launch
  • How to colorize with adobe Photoshop
  • Free Magento Themes / Templates Download: updated list
  • How to install wordpress step by step tutorial
  • List of 200 Highest paying Adsense Keywords : Updated list 2010
  • How to display Exit Splash or Exit message for website
  • How to promote your old Blog posts