This is what I mean:
This is what I got:
It’s on shopify dawn theme and I can’t seem to get rid of that padding or make the images full witdh ![]()
A Shopify store owner using the Dawn theme needed to remove unwanted padding around product images on mobile devices. The images weren’t displaying full-width as desired, with visible white space on the sides.
Solution provided:
</body> tag).product__media-wrapper class to eliminate padding on mobile screens (max-width: 749px)Follow-up issue:
The same padding problem appeared on related product collection images at the bottom of product pages.
Additional fix:
product-recommendations.related-productsStatus: Resolved. The user confirmed the initial solution worked after struggling for hours to find a fix elsewhere. Screenshots demonstrate the before/after results showing full-width images without padding.
This is what I mean:
This is what I got:
It’s on shopify dawn theme and I can’t seem to get rid of that padding or make the images full witdh ![]()
Hi @SureBuy
TRy this one.
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
Awesome! I have been trying for hours couldn’t find it anywhere else.
Also…
The same issue is also on the collection images on the product pages:
Any way to apply it there to?
Add this code.
before the
@media only screen and (max-width: 749px){
product-recommendations.related-products {
padding-left: 0;
padding-right: 0;
}
h2.related-products__heading.inline-richtext.h1 {
padding-left: 1.5rem;
}
}
And save. Or replace all the code below.
and Save.
Result:
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!