A user seeks to widen the product grid specifically on collection pages (desktop view) for their Shopify Impulse theme site, noting that current CSS changes affect the entire website rather than just collections. The site shows small product images with excessive whitespace on both sides.
Solutions Provided:
shreyhweb: Suggested adding conditional CSS code in theme.liquid above </body> using {% if template == 'collection' %} to target only collection pages, with a visual result showing wider grid.
DaisyVo: Recommended inserting CSS code above </head> in theme.liquid that targets the specific collection URL, removing padding from collection grid elements.
Current Status:
The user confirmed DaisyVo’s solution worked after adjusting padding values. However, a new issue emerged: the filter and page heading are not aligned with the widened product images. The user successfully removed padding from the filter but needs guidance on aligning the page title with the grid.
Summarized with AI on November 2.
AI used: claude-sonnet-4-5-20250929.
How can I make the product grid wider on the collection pages only? so not when viewing a single item or any other part of the website. This is regarding the desktop view.
I increased the max page width in the css but that changes the entire website, rather than just the collections page. Would prefer if it’s just some code I can add in the theme editor for the collection page if possible.
In order to fulfill your request, please follow these steps
Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above
Hello! Thank you so much for your help, this worked, although I wanted more padding on each side which I added in the code.
While I was happy with the size of the images, I was hoping the filter and page heading would be aligned with the images too. Removing the padding for the filter worked, but I wan’t sure what to do about the title. Would that be possible? Thank you again.