Shopify themes, liquid, logos, and UX
I would like to remove the padding from around the product page image, however, after hours of trial and error I wasn't able to accomplish anything, please help!
Solved! Go to the solution
This is an accepted solution.
Hello there.
1. Go to Online Store->Theme->Edit code
2. Asset->/assets/styles.scss.liquid->paste below code at the bottom of the file.
@media screen and (max-width: 749px){
.product .gallery-wrap {
width: 100vw;
margin-left: -50vw;
left: 50%;
position: relative;
}
}
Hello There,
Please share your store URL and screenshot.
So that I will check and let you know the exact solution here.
Please share your store URL.
https://sunsetparadiselamps.com/products/sunset-lamp
More precise url to the product page
Hello there.
1. Go to Online Store->Theme->Edit code
2. Asset->/styles.scss.css.liquid->paste below code at the bottom of the file.
@media screen and (max-width: 749px){
.product .product .product_gallery {
margin-bottom: 10px;
}
.product .main.content {
padding-top: 0;
}
}
Just did this, it did move the image up and centered it out a little more, however, I want it to be flush to the edges. Is that possible?
Please add the following code at the bottom of your assets/styles.scss.liquid file.
@media only screen and (max-width: 480px){
.product .container { width: 100% !important; padding: 0px !important; margin-top: -25px; }
}
Hope this works.
@dmwwebartisan if I do this the whole page's text gets disrupted and is too close to the edge.
This is an accepted solution.
Hello there.
1. Go to Online Store->Theme->Edit code
2. Asset->/assets/styles.scss.liquid->paste below code at the bottom of the file.
@media screen and (max-width: 749px){
.product .gallery-wrap {
width: 100vw;
margin-left: -50vw;
left: 50%;
position: relative;
}
}
This one was it, I just added margin-top: -55px; to it as well so it moves up, thank you so much for the help!
Hi there I'm currently facing the same obstacle, unfortuantly it no longer seems to work during 2024 and I'm not sure if you still help people as you've done over here. Anyways I was wondering if by any chance you have an up-to-date code for the exact same obstacle for me? If it helps, It's mainly focussed on mobile and I am using the Dawn theme.
Try this first.
@media only screen and (max-width: 480px){
.product .container { width: 100% !important; padding: 0px !important;}
}
Let me know if this works.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024