I’m having some issues with the product images. They seem to constantly get inline height and width styles set to them but I can’t seem to find where it’s coming from. Anybody able to help me?
At the moment in the HTML code the image has the following styles:
<img width="190" height="142" src="http://mydomain.nl/wp-content/uploads/2012/11/sprite2.jpg" class="attachment-shop_single wp-post-image" alt="sprite2" title="sprite2" data-o_src="http://mydomain.nl/wp-content/uploads/2012/10/explorer.jpg" data-o_title="explorer">
This is the default code to get the product image.
<?php echo get_the_post_thumbnail( $post->ID, apply_filters( 'single_product_large_thumbnail_size', 'shop_single' ) ) ?>
Now i’ve tried setting ‘single_product_large_thumbnail_size’ & ‘shop_single’ to ‘full’ to get the full-size image but that was no solution it seems.
Any help would be welcome!
- The topic ‘Inline height & width attributes for product image’ is closed to new replies.