A user needed to make specific Shopify pages using a custom template display at full width to accommodate wider tables without horizontal scrolling.
Initial Solutions Attempted:
Adding CSS targeting a specific page ID via theme.liquid - worked for single pages only
Attempting to target template.name - failed to recognize the template
Key Issue Identified:
Shopify uses template.suffix rather than template.name to identify custom page templates.
Working Solutions:
Add custom CSS directly to the page sectionâs âCustom CSSâ field:
.rte {
max-width: none;
}
Alternatively, use a âCustom HTMLâ or âCustom Liquidâ section with inline styles
Resolution:
The first CSS method successfully applied full-width styling. When saved as an alternate template, this setting persists and can be assigned to other pages requiring full-width content. The user adjusted the width percentage to their preference.
Note: The .page-content class initially suggested was rejected by Shopifyâs Customizer as invalid, requiring the .rte class workaround.
Summarized with AI on October 28.
AI used: claude-sonnet-4-5-20250929.
thanks for that solution it worked on the single page, can i apply it to a particular page template somehow, so all pages created with that tempate have the full width?
Second, this can easily be done without editing theme code â simply add this code to the âCustom CSSâ of the main page section:
.page-content {
max-width: none;
}
If you then save template as an alternate template, this setting will persist and you should be able to assign it to other pages where you need full-bleed content.