Product Archive with different image sizes
-
My shop page shows images with different sizes on the same loop.
With right size:
<img src="https://www.mysite.com/wp-content/uploads/2015/09/IMG_0475-266x398.jpg" class="attachment-woocommerce_thumbnail size-woocommerce_thumbnail wp-post-image" alt="" width="266" height="398">
With wrong size:
<img src="https://www.mysite.com/wp-content/uploads/2017/04/IMG_9147-e1492000839781.jpg" class="attachment-woocommerce_thumbnail size-woocommerce_thumbnail wp-post-image" alt="" srcset="https://www.mysite.com/wp-content/uploads/2017/04/IMG_9147-e1492000839781.jpg 2048w, https://www.mysite.com/wp-content/uploads/2017/04/IMG_9147-e1492000839781-300x300.jpg 300w, https://www.mysite.com/wp-content/uploads/2017/04/IMG_9147-e1492000839781-768x768.jpg 768w, https://www.mysite.com/wp-content/uploads/2017/04/IMG_9147-e1492000839781-1024x1024.jpg 1024w, https://www.mysite.com/wp-content/uploads/2017/04/IMG_9147-e1492000839781-55x55.jpg 55w, https://www.mysite.com/wp-content/uploads/2017/04/IMG_9147-e1492000839781-180x180.jpg 180w" sizes="(max-width: 266px) 100vw, 266px" width="266" height="266">
I already resize the images, the new size exist but the result (problem) is the same. If I access https://www.mysite.com/wp-content/uploads/2017/04/IMG_9147-e1492000839781-266×398.jpg the file exist but isn’t used on the page’s loop.
- The topic ‘Product Archive with different image sizes’ is closed to new replies.