Shopify themes, liquid, logos, and UX
Hello,
I am using the Palo Alto theme. I want to make the main product image on product page full width on both sides but just for mobile. For desktop i want to stay as it is. Also no padding on the top. You can see from the picture. I have marked with red the white spaces I want removed.
Also I tried some solutions and all images on the page became full width. I want just the product image.
Best,
Zlati
Solved! Go to the solution
This is an accepted solution.
Try this code @zlati84
@media (max-width: 768px){
.product-single__gallery{
width: 115% !important;
margin-left: -20px !important;
}
.product-single{
overflow: hidden !important;
}
#productTemplate--template--23010168439113__main {
padding-top: 0px !important;
}
}
Hi @zlati84,
Go to Online Store, then Theme, and select Edit Code.
Search for base.css/theme.css/style.css/main.css/custom.css file Add the provided code at the end of the file.
@media (max-width: 768px){
.product-single__gallery{
width: 115% !important;
margin-left: -20px !important;
}
.product-single{
overflow: hidden !important;
}
}
Hi, thank you that worked great for the side paddings but also want the padding on the top of the product. - see picture
This is an accepted solution.
Try this code @zlati84
@media (max-width: 768px){
.product-single__gallery{
width: 115% !important;
margin-left: -20px !important;
}
.product-single{
overflow: hidden !important;
}
#productTemplate--template--23010168439113__main {
padding-top: 0px !important;
}
}
worked like a charm! Excellent! thank you!
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025