Hello guys, I want my main image view in mobile to be full width, here is an example.
I want this image above to be like this image below
As you can see the second image is full width and do not have any padding at the right and left side
A Shopify user needed to make product images display full-width on mobile devices, removing the default left and right padding. The user provided screenshots showing the current padded view versus the desired full-width appearance.
Attempted Solutions:
.product--thumbnail_slider was provided but did not resolve the issue.Working Solution:
A second CSS code snippet was shared that successfully solved the problem by:
!important declarations to override existing stylesThe code should be added to the theme’s CSS file (theme.css or base.css) through the Shopify theme editor.
Status: Resolved - the user confirmed the second solution worked.
Hello guys, I want my main image view in mobile to be full width, here is an example.
I want this image above to be like this image below
As you can see the second image is full width and do not have any padding at the right and left side
Hi there @NikosBat Check out this code and let me know if it works for you
Please use this code in CSS file
@media screen and (max-width: 750px) {
.product.product–thumbnail_slider.product–mobile-show .grid__item.product__media-wrapper {
left: -1.5rem;
width: calc(100% + 3rem);
max-width: calc(100% + 3rem);
}
}
Hello Bundler-Manuel and thanks for replying, this code did not work for me
Hi @NikosBat
@media(max-width:749px){
.grid--peek .grid__item {
min-width: 100% !important;
}
.section-template--22800324755788__main-padding .page-width {
padding: 0 !important;
}
}
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Use our Big Bulk Discount app to boost your sales!
(https://apps.shopify.com/big-bulk-discount). Easy to set up and perfect for attracting more customers with bulk discounts. Try it now and watch your revenue grow!
Thanks for your answer Websensepro, that has solved my problem