Prevent height and width of images from being set to 1

I am using WordPress WooCommerce plugin here to display the products and it has an issue where some product images are not getting displayed because the width and height values are automatically set to 1.

<span class="">
  <img height="1" width="1" alt="0001702_black-metal-bar-stool_600" 
       class="attachment-shop_catalog wp-post-image" 
       src="http://aalampana.com/wp-content/uploads/2015/06/0001702_black-metal-bar-stool_600.gif">
  <span class="cart-loading">
    <i class="fusionicon-spinner"></i>
  </span>
</span>

Can any one please let me know how to solve this problem?

Related posts

1 comment

  1. Use Either CSS or JS

    CSS:

    .attachment-shop_catalog wp-post-image{
        width:100%; height:auto;
    }
    

    Jquery:

    $(".attachment-shop_catalog wp-post-image").removeAttr("height").removeAttr("width");
    

Comments are closed.