Jump to content

Number of Columns in Store Page Settings

Recommended Posts

  • Replies 5
  • Views 667
  • Created
  • Last Reply

Top Posters In This Topic

Posted
On 2/9/2022 at 4:32 AM, mtengaio said:

Site URL: https://cinnamon-arugula-lbx4.squarespace.com

Is there a way to customize a store page so that number of columns is different from the any other store pages on the same site? I have a couple of store pages with 4 items on each and centered. I want to add a third store page that has only 3 items on it and keep those 3 items centered.

pw: Taco208

Just add this code to that Shop Page Header

<style>
  @media screen and (min-width:768px) {
  .products.collection-content-wrapper .list-grid {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
}
  }
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Posted
23 hours ago, tuanphan said:

Just add this code to that Shop Page Header

<style>
  @media screen and (min-width:768px) {
  .products.collection-content-wrapper .list-grid {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
}
  }
</style>

 

Thank you tuanphan, but when I added that code all it did was make the main header taller, it didn't center the 3 products on the page. Please refer to screen shot.

Screen Shot 2022-02-14 at 7.39.00 AM.png

Posted
12 hours ago, tuanphan said:

<style> </style> code, you can't add it to Custom CSS. You need to add it to Shop Page Header

 

Yes, I figured that out. Thanks again, I really appreciate it.

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.