Jump to content

Centering product in store - in sub categories

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

On 11/12/2021 at 10:02 PM, Jimmyky said:

Site URL: https://flounder-synthesizer-bfwt.squarespace.com/pricing/annual-membership

Hi,

I'm trying to centre align the sub-categories with 1 product as it looks odd by itself on the side. I can't figure out the code to do so either. Could I get some help with this!

Individual store page.PNG

You can try adding to Home > Design > Custom Css

@media screen and (min-width: 768px) {
  .products.collection-content-wrapper .list-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  .products.collection-content-wrapper .grid-item {
    grid-column: span 2;
  }
  /* Dealing with single orphan */
  .products.collection-content-wrapper .grid-item:last-child:nth-child(4n + 1) {
    grid-column-end: 6;
  }
}

Let me know it works on your site

Press 👍 or mark this answer as solution to help another one too

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

My testing result

image.thumb.png.fccbac84dd91886c07e05fed3d1e3296.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

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.