Product image size
-
Hello,
I’ve been struggling for the past couple of days. Googled my brain out with no luck, so i’m resorting to bothering you ??
My problem is as follows:
I’m using Zerif Lite with Woocommerce. I’ve managed to use CSS snipets to arrange the size of the catalog product images. It`s decent now.
I cannot, though, understand how to make the single product image stay smaller in size. (here is a link to one of my products: https://www.smoke-free.ro/product/aladin-lima-66-cm/ )
I’ve tried resizing through WC and rebuilding thumbnails. All it did was create clearer or fuzzier images, but the size remained the same.
I’ve tried resizing the picture before uploading, the same result regarding the quality of the picture, the size was the same.I have little understanding of CSS, but what i managed to do was this:
Set the max-width of the div.images to 300px. That does the trick, in a way. But it screws up my other products that have different images (it makes them too small- here is another example of a product picture, this one gets screwed up- https://www.smoke-free.ro/product/aroma-narghilea-after-dark/ ).
Here`s the code i used:
.woocommerce-page div.product div.images img { display: block; max-width: 300px; height: auto; box-shadow: none; margin-left: 14%; margin-right: auto; float: right; }
From what i can tell, the container is on automatic and it overrides everything else. if i can manage to make that container a fixed size or at least, “no bigger than”, i think every picture i upload would go to the max size of that container and stop.
That is basically what i am trying to achieve:
Reduce the size of the single product images in a way that every product image i have (no matter the size of the picture) looks the same.
I hope i was clear enough, if not, please let me know how i can clarify.
Thank you in advance!
- The topic ‘Product image size’ is closed to new replies.