Jump to content

Change size + align related products

Recommended Posts


Wondering if someone could help... 🫣

Looking to have x5 related products on one line. 


This is the code I have created so far... 

//Change related product size - Start//

.ProductItem-relatedProducts .list-grid .grid-item:nth-child(n+6) {
    display: none;
.ProductItem-relatedProducts .list-grid 
{grid-template-columns: 200px 200px 200px 200px !important;

//Change related product size - End//

Screenshot 2023-07-13 at 16.52.18.png

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Add to Design > Custom CSS

/* Related products 5 columns */
@media screen and (min-width:992px) {
.ProductItem-relatedProducts.ProductList.clear.sqs-pinterest-products-wrapper .list-grid {
    grid-template-columns: repeat(5,1fr) !important;


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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.