Book cover thumbnail displays as square on WooCommerce shop page
-
The thumbnail is shown as 300×300 in pixels. I need to have it displayed in the same proportion as the original book cover image.
I have installed the Simple Image Sizes plugin and have tried to regenerate images after making changes, but could not get it work for some reasons.
After checking the page source, I can pin-point this line to be related:
<img width="300" height="300" src="https://www.biblecodes.ca/wp-content/uploads/2019/07/tptp_english_cover-300x300.jpg" class="attachment-woocommerce_thumbnail size-woocommerce_thumbnail" alt="" srcset="https://www.biblecodes.ca/wp-content/uploads/2019/07/tptp_english_cover-300x300.jpg 300w, https://www.biblecodes.ca/wp-content/uploads/2019/07/tptp_english_cover-100x100.jpg 100w" sizes="(max-width: 300px) 100vw, 300px" />
But I don’t know how not to use the tptp_english_cover-300×300.jpg image and how not to set the width and height as 300 pixels.
Any hint will be appreciated!
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.