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

  1. Sisir
    Posted 4 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


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • User Photo
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic