A user with the Craft theme created a custom collection page section using Page Crafter. The custom liquid section displays correctly but extends edge-to-edge without left/right margins or padding.
Issue: The custom section lacks side padding and needs max-width constraints to match the rest of the page layout.
Solution provided:
Navigate to Online Store > Themes > Assets folder
Open the main CSS file (main.css, base.css, style.css, or theme.css)
Add CSS targeting the specific custom liquid section class
Apply max-width: 100% and appropriate padding
Key consideration: The responder noted that individual sections may need to be targeted one-by-one rather than applying max-width globally to all elements. They requested clarification on whether all sections should have max-width or only specific divs need margin adjustments.
The discussion includes a screenshot showing the problematic section and CSS code snippet for implementation.
Summarized with AI on November 5.
AI used: claude-sonnet-4-5-20250929.
I have the craft theme and I built a custom collection page using the app Page Crafter. Basically I created the part of the page I want to go on my collection page just below the collection products, so essentially a long custom section of the collection page. Page Crafter let’s me copy the code so I can add it into my custom collection page by adding a section of </> Custom Liquid option. The only issue is the edges go all the way to right and left margins and gets cut off. How can I add some right and left padding or max width within the code of the section Custom Liquid or is that even possible? Thanks!