I recently installed Adam Hupp’s WP-fbconnect plugin and it’s working fantastic, except for one problem: I can’t seem to get the user avatars to play nicely with the default ones in WordPress.
When a user is signed into facebook and leaves a comment on the blog post, the plugin should use their facebook profile picture as their avatar. I can get this to work if I insert the following code where I want the facebook avatar to display:
<?php echo get_avatar( $comment, 32 ); ?>
Unfortunately, the default WordPress avatar shows also. So I end up with 2 different avatars for each comment, which looks really bad. There is a setting in the WordPress discussion settings panel that lets me choose a blank avatar, but the width of that avatar still pushes the user’s name over to the right, which creates an empty space between the post number and the user’s name.
Can anyone tell me how to turn on avatars but use an avatar that has a pixel width of 0 or 1? That might do the trick.
- The topic ‘User avatars in comments’ is closed to new replies.