A user seeks to make product pages full width on their Shopify store (using Out of the Sandbox Turbo theme) without affecting the entire site layout.
Initial Problem:
Found CSS code that makes the entire site full width but needs it to apply only to product pages
The CSS targets .section with max-width: 100% and centered margins
Solution Provided:
A helper suggests a two-step approach:
Remove the original CSS snippet from its current location
Add conditional CSS code to layout/theme.liquid before the </head> tag
Key Technical Detail:
The solution uses Liquid templating logic ({% if template.name == 'product' %}) to apply the full-width CSS only when on product pages.
Outcome:
Initial code suggestion was incomplete (missing <style> tags)
After correction with proper markup tags, the solution successfully resolved the issue
User confirmed it worked
Summarized with AI on November 7.
AI used: claude-sonnet-4-5-20250929.
I would like to make the layout of my product pages full width.
I have found that editing the code below makes the whole site full width but can’t figure out how to only make the product pages full width. Please help