Can't figure out why the margin disappeared in some sections and pages

Topic summary

Issue: Sitewide spacing changed—side margins vanished on product pages and the left margin disappeared in “image with text” sections. Screenshots and a live URL were provided.

Intervention: A PageFly representative advised adding custom code into theme.liquid (above ) and shared step-by-step instructions with screenshots.

Outcome so far: Applying the suggestion partially improved spacing. However, the store owner notes that previously the background color extended to the screen edge; they want that edge-to-edge background restored. They also still need the product page margins reinstated.

Notes:

  • The exact code to paste is not visible in the post (code block appears empty), but images/screenshots are central to understanding the proposed fix.
  • theme.liquid is Shopify’s main theme template file; refers to the closing head tag where global CSS/JS can be injected.

Open items / next steps:

  • Provide or clarify the missing code snippet.
  • CSS guidance to achieve full-bleed background while maintaining appropriate content margins.
  • Specific instructions to restore product page margins.

Status: Ongoing; no final resolution or confirmed fix yet.

Summarized with AI on December 30. AI used: gpt-5.

Hi everyone,

On our site, the margin on both sides of the the product pages and the left side margin for the image and text sections throughout the site have gone away. Not sure if its a theme issue or a code we may have accidentally messed up somewhere. Any help is appreciated!

https://ozsjewelers.com/

Hi @dkp4846

This is Richard from PageFly - Shopify Page Builder App

Please add this code to your theme.liquid above the to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the


Hope this can help you solve the issue

Best regards,

Richard | PageFly

Thank you! Before it got messed up, the color from the background went to the edge of the screen. While this is definitely better than it was, do you have any suggestions to have it fill to the edge of the screen?

Also, any idea how to get the margin back for the products page? Thanks!