We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How to remove top and left margin on Dawn theme product images?

How to remove top and left margin on Dawn theme product images?

hug1
Tourist
26 0 2

Hello, 

How do I remove the top and left margin on my product image on the product page? I use the Dawn Theme.

I want the information on the right side to stay the same. 

 

Thanks in advance! 

productpage.png

 

Replies 4 (4)

GemPages
Shopify Partner
5625 1262 1292

Hello @hug1 

I would like to give you the recommendation to support you so kindly follow steps below:

 

1. Go to your Online store > Themes > Edit code
2. Open your theme.liquid file
3. Paste the below code before </body>

<style>
#MainContent .shopify-section > .page-width{
padding-top:0px !important;
padding-left:0px !important;
}
</style>

I hope the above is useful to you.
Best regards,
GemPages Support Team

 

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center
hug1
Tourist
26 0 2

Hi, thank you for this. How ever, is there a way to do this only on mobile? And not changing the padding of the copy below the image? 

hug1
Tourist
26 0 2

Hi again and thank you!

Is there a way to do this only on mobile? And not changing the padding of the copy below the image?   

cielle23
Tourist
17 0 2

Hi @GemPages this is great help but i need more info - where exactly do we paste this code? As i cannot see </body> on the theme liquid file