Support » Plugin: User Photo » User Photos not aligned correctly

Viewing 8 replies - 1 through 8 (of 8 total)
  • yes. i have the same problem. already tried to decrease the size of photo thumbnails but they still are not aligned on the left side but instead appear above the text comments and moved inwards from the left border. as well the miss the border which is attached to all other avatars.
    I already had a look at comment.php of my theme but could not find anything. Any idea? THANKS!!

    I had the same problem and solved it by adding the class="avatar" to the <img> tag generated by the plugin.

    You can find it in line 165.

    Would be nice to have it fixed in a coming version, so that nobody have to hack the original plugin.



    Thank you for the fix carstenbach!

    Hi, line 165 in what document? The comments.php file only has 104 lines..

    Please help 🙂

    Hi warclown,

    I added the class to the pluginfile itself user-photo.php.
    Hope this helps.

    Thanks carstenback.

    Some clarification please:

    I had the same problem and solved it by adding the class=”avatar” to the <img> tag generated by the plugin.

    Did you add the avatar class, or did you replace the photo class with avatar?

    I ask because I wonder what side effects changing the class from photo to avatar has on other uses of the avatar; for example, in author pages.


    It would be nice to be able to completely bypass and avoid gravatar use and outbound calls/tracking to Gravatar. The options to bypass Gravatar depend on the global WP Gravatar fallback options enabled. I noticed some code that has been commented out that may manage that.

    In summary, I am going to pursue a solution to providing a default avatar in the case the user does not have a specific avatar uploaded/selected, aside from calling Gravatar for one.

    He empathy,

    I really added the class, to keep things going were the avatar-class ist used by css.

    To have a default local fallback, you could hook the ‘mystery-man’ with something like this

    Good luck!

    I hate to bump up an old topic like this, but I guess it’s better than making a new one. I too would like to see the missing class “avatar”, and if possible “avatar-{$size}”, added to the image tags created bu User Photo.

    The developers went through the trouble of adding the “photo” class, but for a plugin that supposedly works alongside both Gravatars and the get_avatar() function from pluggable.php, it seems that omitting the “avatar” class would cause a lot of trouble, as many themes, as well as wordpress’ native function, use this class to differentiate their user identity photos (aka avatars) from other photos.

    In fact, just by skimming the forum, quite a few problems would be solved by this simple addition of 1 line of code – problems that some users users associate with the uploaded photo but are actually rooted in a CSS problem.

    It’s a shame, because otherwise this plugin is really thorough, and easy to use to boot!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘User Photos not aligned correctly’ is closed to new replies.