LukosPH Posted May 22 Share Posted May 22 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 Link to comment
Solution Beyondspace Posted May 22 Solution Share Posted May 22 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 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 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
LukosPH Posted May 23 Author Share Posted May 23 This worked perfectly, thank you so much! Beyondspace 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment