Hi Shopify Community,
My website url is : https://malayanwolfpack.myshopify.com/
I would like to know how I could get the product page images to be displayed on full width left to right.
Current image display has been shared below too. Thank you
A user seeks to make product page images display at full width on mobile devices for their Shopify store using the Dawn theme.
Problem:
Solutions Provided:
Two community members offered CSS code solutions:
shreyhweb’s approach: Add CSS code above </body> in theme.liquid
PageFly-Victor’s approach: Add CSS code to Assets -> Base.css
Both solutions modify .product-media-container classes with media queries to achieve full-width display on mobile devices.
Status: Solutions provided, awaiting user confirmation of which approach worked.
Hi Shopify Community,
My website url is : https://malayanwolfpack.myshopify.com/
I would like to know how I could get the product page images to be displayed on full width left to right.
Current image display has been shared below too. Thank you
Hello,
Please add the below code above in theme.liquid
online store >> edit code >> theme.liquid
@media screen and (max-width: 576px) { .product-media-container.constrain-height .media{ padding-top: 400px!important; } .product-media-container.constrain-height.media-fit-contain{ min-width:100%!important; } } @media screen and (min-width: 577px) and (max-width: 767){ .product-media-container.constrain-height .media{ padding-top: 800px!important; } .product-media-container.constrain-height.media-fit-contain{ min-width:100%!important; } }after added looks like this
If our solution is helpful for you then Please like the post and tad to accepted solution.
Thankyou.
This is Victor from PageFly - Shopify Page Builder App, I’d like to suggest this idea:
Online Store ->Theme ->Edit code
Assets ->Base.css
@media screen and (max-width: 767px) {
.product-media-container.constrain-height .media{
padding-top: 400px!important;
}
.product-media-container.constrain-height.media-fit-contain{
min-width:100%!important;
}
}
@media screen and (min-width: 1240px){
.product-media-container.constrain-height .media{
padding-top: 800px!important;
}
.product-media-container.constrain-height.media-fit-contain{
min-width:100%!important;
}
}
Hope you find my answer helpful!
Best regards,
Victor | PageFly
Please accept the solution.