Hi Everyone
I have two problem statements. Both are related to how images are showing up on product page and are limited to only the mobile version of my website only as Dawn theme provides good customization options for desktop version.
- Reduce the image height to say 30-40% (150-200 pixels on a 500 pixel) of screen size. For some products, it is occupying as high 350px. Please refer to screenshot 1
- Consistency of image height across products. On some pages it is 360px while on some others it is 200px which is ideal - screenshot 2
I am okay with the images getting somewhat cropped.
Hello.
Can you please share your website address?
Hi StoreExp
Thanks for picking this up so quickly. The address of this website is de6595-1e.myshopify.com
Hi Everyone
I was tinkering around with various solutions and got the desired output on putting following code. Here’s what I did
-
Online Store → Themes → Customize
-
Using the drop down in top center which says “home page”, navigated to “Default Product”
-
Clicked on Product Information (refer to first screenshot)
- Scrolled to the bottom to find custom CSS section (second screenshot)
- Pasted following code
@media screen and (max-width: 767px) {
.product-media-container.constrain-height .media {
padding-top: 33vh;
}
}
Hope this helps anyone else looking for a similar solution!