A Shopify store owner using the Impulse theme needs help centering two products on a mobile collections page for their sticker collection. Standard theme settings adjustments didn’t resolve the issue.
Attempted Solutions:
First suggestion involved adding CSS code to base.css or theme.css targeting the collections grid with flexbox properties, but this didn’t work.
Second solution recommended adding CSS to product-grid-item.css with specific margin and width adjustments for mobile screens (max-width: 768px).
Current Status:
The second CSS solution successfully centered the collection page products, but created an unintended side effect: when clicking on a product, the individual product page also shifts to the left. The user is now seeking additional code to fix this new alignment issue on product pages while maintaining the centered collection layout.
Summarized with AI on November 19.
AI used: claude-sonnet-4-5-20250929.
I am using Impulse Theme and I have a sticker collection and it is only two 2 products and I am trying to center them on my collections page for mobile. I tried adjusting the settings to display but that didn’t help. Any suggestions? Thanks
Go to Assets folder → base.css file or theme.css file
Add this following code at the bottom of page
@media only screen and (max-width: 480px) {
.collections-grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.collections-grid .collection {
flex-basis: 45%; /* Adjust this value to control the width of each collection */
}
}