Remove padding product image desktop | Dawn

Solved

Remove padding product image desktop | Dawn

Sportingoodz
Shopify Partner
12 1 2

Hi ! Any idea how to remove padding on shopify dawn product page ? 

Tried so many things....

 

link of the website : https://1jdgid-fx.myshopify.com/products/carlos-crewneck-forest


Would like to have this result
padding.pngthis is actually how my website is. 
 actual.png

Accepted Solution (1)
Sportingoodz
Shopify Partner
12 1 2

This is an accepted solution.

perfect it work in files theme liquid. i removed completly padding left so it is perfect ! and with a media screen rule because otherwise add to cart on mobile is also affected 

@media screen and (min-width: 990px) {
product-info#MainProduct-template--24664982749566__main .page-width {
padding-left: 0px !important;
padding-right: 10px !important;
}
}

View solution in original post

Replies 9 (9)

topnewyork
Astronaut
1299 160 217

Hi @Sportingoodz 
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>

<style>
@media screen and (min-width: 750px) {
    .page-width {
        padding: 0px 0rem;
    }
}
</style>

If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!

Need a Shopify developer? Hire us at Top New York Web Design
Boost Your Store Sales with Volume/Tier Discount Try Big Bulk Discount
Create New Shopify Store For Just 1$/Month
Sportingoodz
Shopify Partner
12 1 2

Hi, thanks for your message. I did try this but it removes the width of the entire page. (check the screen)

I just want to remove the padding of the product image

thanks for trying ! 
prob.png

pawankumar
Shopify Partner
700 102 123

Hi @Sportingoodz 
I hope you are doing good
To remove size padding on product page
Use this code in theme.liquid before body closing tag

{% if template contains "product" %}
<style>
.page-width {
padding-inline: 0px !important;
}
</style>
{% endif %}


Please like and accept the solution if it works for you

Thanks!

- Need a Shopify developer? Chat on WhatsApp +91-9467121281
- Coffee Tip: Buymeacoffee  | Email: thepkpawankumar@gmail.com
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Best regards,
Pawan
Sportingoodz
Shopify Partner
12 1 2

this one doesn't work, thanks for trying 🙂

LizHoang
Shopify Partner
1251 159 196

Hi @Sportingoodz 

You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file base.css and add this code at the end of the file

 

.page-width {
    padding: 0 !important;
}

 

Result: 

LizHoang_0-1739978580131.png

 

Best,

Liz

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program
Sportingoodz
Shopify Partner
12 1 2

Hi Liz, thanks for your message. I did try this but it removes the width of the entire page. I just want to remove the padding of the product image
thanks for the support ! 
prob.png

LizHoang
Shopify Partner
1251 159 196

Hi @Sportingoodz , you can try this code 

product-info#MainProduct-template--24664982749566__main .page-width {
    padding-left: 5px !important;
    padding-right: 10px !important;
}

 

Result: 

LizHoang_0-1739984281475.png

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program
Sportingoodz
Shopify Partner
12 1 2

This is an accepted solution.

perfect it work in files theme liquid. i removed completly padding left so it is perfect ! and with a media screen rule because otherwise add to cart on mobile is also affected 

@media screen and (min-width: 990px) {
product-info#MainProduct-template--24664982749566__main .page-width {
padding-left: 0px !important;
padding-right: 10px !important;
}
}

mt686
Shopify Partner
121 11 21

Hey! 

Looks like you've got plenty of code solutions, so I'll there this out there: https://apps.shopify.com/easy-edits

Easy Easy (app I developed). You can adjust any element, including padding, by just clicking and changing or dragging and dropping. It's free to test and you can keep any edits you make. 


Best of luck!