Changing the Default WordPress Gravatar
July 25, 2008 · Print This Article
Thousands of blogs show avatars next to their user’s comments. The avatars are a great way to make things more personal and create some variety between the different comments.
In order to add the image you’ve made, you just need to take your Gravatar code and add the image URL right after the comma:
Before
<?php if(function_exists(’get_avatar’)){ echo get_avatar($comment, 50 );} ?>
After
<?php if(function_exists(’get_avatar’)){ echo get_avatar($comment, 50, 'http://www.livexp.net/wp-content/themes/livexp/images/nophoto.gif');} ?>






















Comments
Got something to say?
You must be logged in to post a comment.