A Shopify store owner seeks help with two layout issues on their collection page:
Primary Issue - Text Alignment:
Wants collection title (“Masks”) left-aligned on desktop, center-aligned on mobile
A community member provided CSS code to achieve this exact layout
Original solution suggested placing code in theme.liquid before tag
User successfully implemented it in component.collection.hero.css instead, resolving the text alignment
Secondary Issue - Product Grid Width:
Product grid only occupies ~60% of page width on desktop despite full-width page settings
User reports items still don’t extend full width after fixing text alignment
Helper indicates the layout appears correct on their screen, suggesting possible browser/cache issue
Status: Text alignment resolved through CSS modification. Grid width issue remains unclear - may be resolved or require cache clearing/browser testing.
Summarized with AI on November 2.
AI used: claude-sonnet-4-5-20250929.
I would like to align my collection text to the left in desktop version and centre it for the mobile version. Please see photos attached… I am talking about the text “Masks” in this case. On another note - if someone is able to help me line up the margins in desktop version that would be much appreciated. I have got my page settings to full width but for some reason the product grid is only taking about 60% of the page for products.
The images you sent are exactly how i want it. I tried putting it in themes.liquid but this didnt work so I put it in component.collection.hero.css and that seems to fix the text alignment problem for both desktop and mobile. however, the items still do not come full width to the page on desktop. how can i fix this issue now?