alexvizniuk Posted November 22, 2022 Share Posted November 22, 2022 (edited) Hi. I am looking to make a custom mobile layout. The products should be sorted out in 2 different sets. First, there is 4 products in one vertical row, then 8 products in one vertical row(2 products in one horizontal). And then, repeat. I attached the example below. Thank you so much. IMG_5678.MP4 Edited November 22, 2022 by alexvizniuk Link to comment
Beyondspace Posted November 22, 2022 Share Posted November 22, 2022 I think we could implement some css code to set on the product collection page Can you share your site with the protected password so I can take a look? 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 (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) 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
Ziggy Posted November 22, 2022 Share Posted November 22, 2022 Here's a good resource for putting your store into two columns: https://insidethesquare.co/squarespace-tutorials/2-column-mobile-store Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
alexvizniuk Posted November 22, 2022 Author Share Posted November 22, 2022 1 hour ago, Beyondspace said: I think we could implement some css code to set on the product collection page Can you share your site with the protected password so I can take a look? https://www.vizniuk.com/ Link to comment
alexvizniuk Posted November 22, 2022 Author Share Posted November 22, 2022 2 hours ago, Beyondspace said: I think we could implement some css code to set on the product collection page Can you share your site with the protected password so I can take a look? right now, i do have a layout like that, but it is not repeated. how can i change that? /* Shop Page - Mobile Layout */ @media screen and (max-width:767px) { .products.collection-content-wrapper .list-grid { display: block !important; } .products.collection-content-wrapper .list-grid .grid-item:nth-child(n+5), .products.collection-content-wrapper .list-grid .grid-item:nth-child(n+17) { width: 50% !important; float: left !important; } .products.collection-content-wrapper .list-grid .grid-item:nth-child(2n+1) { clear: left !important; } .products.collection-content-wrapper .list-grid .grid-item:nth-child(n+13) { clear: both !important; width: 100% !important; }} Link to comment
Beyondspace Posted November 23, 2022 Share Posted November 23, 2022 (edited) Here is the code you can try adding to Home > Design > Custom Css @media only screen and (max-width: 767px) { .products.collection-content-wrapper .list-grid .grid-item { width: 50% !important; float: left !important; } .products.collection-content-wrapper .list-grid .grid-item:nth-child(12n + 7){ clear: left !important; } .products.collection-content-wrapper .list-grid .grid-item:nth-child(12n + 1), .products.collection-content-wrapper .list-grid .grid-item:nth-child(12n + 2), .products.collection-content-wrapper .list-grid .grid-item:nth-child(12n + 3) ,.products.collection-content-wrapper .list-grid .grid-item:nth-child(12n + 4) { width: 100% !important; } } Support me by pressing 👍 or marking as solution if this useful for you Edited November 23, 2022 by Beyondspace Fix for space on some 50% items tuanphan 1 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 (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) 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
thumone Posted November 19, 2023 Share Posted November 19, 2023 Hi, I'm on Avenue 7.0 and have tried almost every code that people have mentioned and still no luck on getting products to appear in 2 columns on the mobile shop. Paulambrett.com Any help is appreciated! Link to comment
tuanphan Posted November 22, 2023 Share Posted November 22, 2023 On 11/20/2023 at 12:30 AM, thumone said: Hi, I'm on Avenue 7.0 and have tried almost every code that people have mentioned and still no luck on getting products to appear in 2 columns on the mobile shop. Paulambrett.com Any help is appreciated! Use this CSS code @media screen and (max-width:700px) { div#productList { display: grid; grid-template-columns: repeat(2,1fr); grid-gap: 5px 5px; } div#productList:before { display: none; } } 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment