WordPress.org

Support

Support » Plugins and Hacks » User Photo » [Plugin: User Photo] How to remove the height attribute on the image?

[Plugin: User Photo] How to remove the height attribute on the image?

  • In my page I want the user photo to be exact width of 200px and height can be more then that (auto). But userphoto is adding a predefine height attribute on the photo which i dont want. Is it possible to remove that height attribute?

    This is what I am currently using. Adding a invalid value for the height attr to get rid of the height.

    <?php userphoto($user->ID, $before = '', $after = '', $attributes = array('width' => 200, 'height' => 'auto')); ?>

    please advice. You can see the page here

    http://wordpress.org/extend/plugins/user-photo/

  • The topic ‘[Plugin: User Photo] How to remove the height attribute on the image?’ is closed to new replies.
Skip to toolbar