Tagged: enfold, product gallery, woocommerce
Hi,
I am working on a website where we use Woocommerce. The product pages are using the default woocommerce layout with the woocommerce product gallery. The problem we are having is that the images in this gallery are nog the same in height.
How can i set the height or aspect ratio of the images shown in this product gallery?
Hey Maarten-dtm,
Could you post a link to where we can see the results you are getting please?
Best regards,
Rikard
Yes,
Thit is one of the product pages where the images are different heights. They should all be square.
Thanks.
Hi,
Thanks for that, are you referring to the thumbnails or the large image when selecting one of the thumbnails?
Best regards,
Rikard
The large images. The thumbnails are responding like they should. But the large image is the problem.
Thanks.
Hi,
Thanks for the update.
This css code should help.
.woocommerce-product-gallery.woocommerce-product-gallery--with-images div, .woocommerce-product-gallery__image {
max-height: 297px;
}
Best regards,
Ismael
Thanks that works. But now the image overlaps the bottom border. Do you have a solution for that as well?