How To Center Products On A Collections Page? (Impulse Theme)

Topic summary

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.

Hi there,

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

Link to Website: https://ued3tor6qy9fdxrn-72462729509.shopifypreview.com

Hello @Lami4 ,

You can try to follow these steps:

Go to Online Store → Themes → Actions → Edit code

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 */
  }
}

Save and preview

Hope this can help.

Ali Reviews team.

Hello @irene-vintage

The code did not work. I placed it at the bottom of the file but nothing happened. Do you have any other suggestions? Thanks

Hello @Lami4

You can try this code: it will be helpful to you

Go to the Online Store->Theme->Edit code->Assets->product-grid-item.css>Add this code at the bottom.

@media only screen and (max-width: 768px){
.grid-overflow-wrapper .grid__item:first-child {
    margin: 0 auto;
    max-width: 100%;
}
.grid {
    margin-left: -54px;
}
}

This worked except when you click on the product it also moved that page to the left. Is there code that can be added to fix it?