straperloagency Posted November 4, 2021 Share Posted November 4, 2021 Site URL: https://www.sagatools.net/ Hello. How can I add 2 products per row on mobile view on my HOME PAGE (in the shop page is working perfectly)? I have some products added on my home page and I want to have it 2 per row (not a full product width), in the shop page I have the 2 product row addes with the following code: <style> @media screen and (max-width:767px) { .products.collection-content-wrapper .list-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)) !important; grid-column-gap: 5px; grid-row-gap: 5px; } } </style> I have tryend everything with 0 result on my home page. Need Help family. thanks everybody Link to comment
Beyondspace Posted November 4, 2021 Share Posted November 4, 2021 43 minutes ago, straperloagency said: Site URL: https://www.sagatools.net/ Hello. How can I add 2 products per row on mobile view on my HOME PAGE (in the shop page is working perfectly)? I have some products added on my home page and I want to have it 2 per row (not a full product width), in the shop page I have the 2 product row addes with the following code: <style> @media screen and (max-width:767px) { .products.collection-content-wrapper .list-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)) !important; grid-column-gap: 5px; grid-row-gap: 5px; } } </style> I have tryend everything with 0 result on my home page. Need Help family. thanks everybody You can try adding to Home > Design > Custom Css @media only screen and (max-width: 767px) { /*2 column product List*/ section[data-section-id="60e016fd47d3e87865504f76"] .content > .sqs-layout > .row:last-child { display: flex; flex-wrap: wrap; } section[data-section-id="60e016fd47d3e87865504f76"] .span-3 { width: 50% !important; } } Let me know how it works on your page Support me by pressing 👍 if this useful for you BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget 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
Beyondspace Posted November 4, 2021 Share Posted November 4, 2021 My testing result straperloagency2 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment