WordPress.org

Ready to get started?Download WordPress

Forums

User Photo
How to remove the height attribute on the image? (1 post)

  1. prionkor
    Member
    Posted 2 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags