How to change the default wordpress avatar

wordpress148x140During the current week I need to change the default avatar in the wordpress site.

Searching in google I have found this article very interesting:

http://wphacks.com/how-to-changing-the-default-wordpress-avatar/

where the author expains very well the simple steps to do to set your own default avatar.

To change the avatar is very simple: you need to search the follow part of code in all files of the wordpress:

get_avatar($comment, 50 );

in this case the second parameter is the dimension of the avatar assuming the avatar has the width euqals to the height.

You can add a third parameter that rapresents your own images like

get_avatar($comment, 50, 'http://www.wphacks.com/wp-content/themes/HackWordPressPro/images/nophoto.gif');

Enjoy with wordpress!

Advertisements
This entry was posted in wordpress and tagged , , , . Bookmark the permalink.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s