A user seeks help removing side and top padding from their Shopify product page, sharing a link and screenshot showing unwanted spacing around product images.
Initial Solutions Attempted:
Two users provided CSS code snippets to be added to the theme.liquid file before the </head> tag
The first attempt failed, prompting a corrected code solution
A third user provided template-specific CSS that successfully removed the padding
Complications:
The working solution inadvertently affected other pages beyond just the product page
Screenshots revealed unintended layout issues on additional pages
The user requested asymmetric padding: zero on the left, minimal on the right (specifically for the buy button and product info)
Resolution:
Additional CSS targeting .page-width with media queries was suggested but didn’t fully resolve the issues
Status: Resolved - The original poster ultimately found their own solution after the back-and-forth troubleshooting
Summarized with AI on November 1.
AI used: claude-sonnet-4-5-20250929.
Thanks so much! It finally worked!
Could you please help me edit the code to add a small padding on right side only? Because they buy button and rest product info is now withput padding on right side.