Digital experiences for all disciplines
New Landing › How can we help? › Atelier › This is what happens… when I cannot set max height
New Landing › How can we help? › Atelier › This is what happens… when I cannot set max height
- This topic has 18 replies, 4 voices, and was last updated 9 years by David Martin – Support.
-
Posted in: Atelier
-
September 28, 2015 at 4:34 pm #216974
Hi guys
I have touched this subject before.
Thing is that I cannot expect from my costumer to upload same size images. There needs to be some intelligence handling the image-sizes.
If I make all images the same size, I have the problem with beer-boxes/ cases. Problem is that I place the case center of the image, which means there is LOADS of white space on top on product-page, which looks really crappy. If I place the wide box on top of the image it looks good on the product-page but really crappy in the product-listing.
The thing is that it should be quite easy to insert a max-height, so that the engine would automatically place the odd-size images center-center within the max height and max width. That way everybody would be happy.
Do you know what I mean now?
Thanks
Peter
Attachments:
You must be logged in to view attached files.September 29, 2015 at 10:13 am #217156Try adding this to your custom css:
.woocommerce .products .product figure .img-wrap img { height: 300px; width: auto; } .woocommerce .products .product figure .img-wrap { text-align: center; }
– Kyle
September 29, 2015 at 1:15 pm #217226– Kyle! That is f brilliant! Works like a charm! Thank you! Much much much much better!
September 29, 2015 at 3:33 pm #217273Glad it’s sorted. Thanks Kyle
-Rui
October 7, 2015 at 6:09 am #218965Hi again Rui!
I have found out that no matter what size I set the large image to, the product on the landing-page (product page) is maxed out, meaning that the hover-zoom makes the image smaller. How come cant I set the size right?
Thanks
Peter
October 7, 2015 at 8:17 am #218986Go to Theme Options > WooCommerce Options and reduce the image width
– Kyle
October 7, 2015 at 8:26 am #218994… but then suddenly I have a product-image which takes up 10% of the page and like 90% tabs etc. That will look really bad. Should I manually overwrite the max-height using css then?
Thanks
Peter
October 7, 2015 at 8:28 am #218997You just have to set the width of the image area to fit well with the size of images you upload.
– Kyle
October 7, 2015 at 8:31 am #218998But the size of the images the customer uploads could be any size image, really… and in that case I would just expect the product image to be like center-center of the image-area? Cos some bottles are like VERY long, and some beer-boxes are horizontal on the other hand… ๐
October 7, 2015 at 8:36 am #219000Not sure if this will work but you can try it:
.woocommerce div.product div.images img { display: inline-block; max-height: 400px; width: auto!important; } #product-img-slider .lSSlideWrapper { max-height: 400px; }
– Kyle
October 7, 2015 at 9:41 am #219023Hi Kyle!
Thank you very much!
Much, much better! Thank you should implement this is your theme as option. (just a friendly suggestion).
I only see 2 problems:
1. When image is not that wide, the zoom function gets cut off. The zoom function should either be linked up to overlay in different z-index, OR, it should be “bound” to the overall size of the image-container/ image-area.
2. The image should be center aligned with the placeholder (and not left-aligned as it is now).
And one last thing btw: The one thumb is waaay higher than the other images. I dont see why that is? Shouldnt there be a max height on these thumbs also?
Thanks
Peter
October 7, 2015 at 9:47 am #219025Have you added my custom css? Because it’s just showing normal for me so I can’t check it
– Kyle
October 7, 2015 at 2:48 pm #219141Sorry, I had removed it again. Please have another look.
Also, despite of changing the thumbnail size, the coming soon image is ok but the real images are too tall. Pls take a look ๐
Attachments:
You must be logged in to view attached files.October 7, 2015 at 3:00 pm #219149That looks like a customisation you have made, did you say you developer had added some code to change all of those images?
Add:
.woocommerce div.product div.images { text-align:center; }
– Kyle
October 7, 2015 at 4:17 pm #219176Hi Kyle. I just happened to come across this one also. I know I write you a 1000 times and I am a big pain in the ass. But I just dont understand why its only me running into these problems??
Please see attachment.
Also the images on the quickview page screw up ๐
Attachments:
You must be logged in to view attached files. -
Posted in: Atelier
You must be logged in and have valid license to reply to this topic.