Hello,
I have changed image sizes, or corrected them for products and regenerated the thumbnails but it’s still displaying products with massive height images as well, massive.
So the height:auto is not working but if I set it to height:200px as below:
.woocommerce ul.products li.product a img {
height: 200px;
}
It works… but it distorts the image.
If you can please help me to set thumbnail to max 200px and the bit of css that will help prevent it distorting.
Thank you in advance
Hi,
This depends the size of your image and unfortunately there is not a css code to work well on all images like you already find out, sorry!
Thanks!
I solved it for the products and list woohoo! (or so I think)
The default is width:100% for both, so I changed it to:
PRODUCT VIEW:
.woocommerce div.product div.images img {
width: auto;
}
CATEGORY / LIST VIEW:
.woocommerce ul.products li.product a img {
width: auto;
}
IT WORKED!!! (for some strange reason, I solved it hahaha)
-
This reply was modified 10 years by
tripledm.
