Jump to content

Wexley Theme - Looking to have my shop items display in rows of 2 on mobile

Go to solution Solved by Beyondspace,

Recommended Posts

I entered this block of code (below) in Squarespace to have my shop stack its items in rows of 2 of mobile instead of the default rows of 1. This code aligns everything to the left and makes them half as big, but the items remain in rows of 1 and the right half of the screen is empty. I fear the Wexley theme specifically is keeping the items from stacking in rows of 2. Can anyone point me in the direction of a solution?


@media screen and (max-width: 767px) {
  .sqs-block-product {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important; /* Updated line */
    gap: 10px !important; /* Optional: Adjust the gap between items */
  }
  .sqs-block-product .sqs-block-product-item {
    margin-right: 0 !important;
  }
}


My site is lukospicturehouse.com/shop 

Screen Shot 2024-05-22 at 4.12.19 PM.png

Link to comment
  • Replies 2
  • Views 990
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution
1 hour ago, LukosPH said:

I entered this block of code (below) in Squarespace to have my shop stack its items in rows of 2 of mobile instead of the default rows of 1. This code aligns everything to the left and makes them half as big, but the items remain in rows of 1 and the right half of the screen is empty. I fear the Wexley theme specifically is keeping the items from stacking in rows of 2. Can anyone point me in the direction of a solution?


@media screen and (max-width: 767px) {
  .sqs-block-product {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important; /* Updated line */
    gap: 10px !important; /* Optional: Adjust the gap between items */
  }
  .sqs-block-product .sqs-block-product-item {
    margin-right: 0 !important;
  }
}


My site is lukospicturehouse.com/shop 

Screen Shot 2024-05-22 at 4.12.19 PM.png

This is the best adjustment I can reach with CSS on your site

@media only screen and (max-width: 767px) {
  #collection-664535bf6bb59d215736cbca .sqs-layout > .sqs-row {
    width: 50% !important;
    float: left
  }

  #collection-664535bf6bb59d215736cbca .sqs-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

My demo

image.thumb.png.fd08e2164186d64c52ba383e37afe9cc.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace
🚀 Learn how to rank new pages on Google in 48 hours!

If you find my answer useful, 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.