Jump to content

Number of Columns in Store Page Settings

Recommended Posts

  • Replies 5
  • Views 411
  • Created
  • Last Reply

Top Posters In This Topic

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!)

Link to comment
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

Link to comment

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.