PeriodicoEmporium Posted July 28, 2021 Posted July 28, 2021 Site URL: https://www.periodicoemporium.com/ Hi, I am trying to get two products to appear side by side on mobile for my homepage and other main pages throughout the site. I checked the forum and the following code was listed: @media only screen and (max-width:640px) { .products .list-grid { display: flex; flex-wrap: wrap; justify-content: space-between; } .products .grid-item { width: 48%; } } However, I have tried this and it still doesn't work. Does anyone have any other ideas? Thanks, Nadia
PeriodicoEmporium Posted July 28, 2021 Author Posted July 28, 2021 I also used this code as a someone said it was a fix and it didn't work either: <style> @media screen and (max-width:763px) { .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>
tuanphan Posted July 30, 2021 Posted July 30, 2021 On 7/29/2021 at 3:57 AM, PeriodicoEmporium said: I also used this code as a someone said it was a fix and it didn't work either: <style> @media screen and (max-width:763px) { .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> With homepage, add this to Design > Custom CSS /* home 2 products row */ @media screen and (max-width:767px) { div#page-section-6101a639f637f965fb180af8 .span-3 { width: 50% !important; float: left !important; } div#page-section-6101a639f637f965fb180af8 .span-3:nth-child(2n+1) { clear: left !important; } } Can you share link to other pages? PeriodicoEmporium 1 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!)
PeriodicoEmporium Posted July 30, 2021 Author Posted July 30, 2021 Oh my goodness! That worked. Thank you sooo much! 🙂
tuanphan Posted August 1, 2021 Posted August 1, 2021 On 7/30/2021 at 7:39 PM, PeriodicoEmporium said: Oh my goodness! That worked. Thank you sooo much! 🙂 Do you still need help with other pages? Can you share their urls? 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!)
PeriodicoEmporium Posted September 6, 2021 Author Posted September 6, 2021 Sorry for the late reply tuanphan. I have only just seen your other message as my account was playing up. it worked really well so thank you.
thenakedproject Posted April 22, 2022 Posted April 22, 2022 I still cannot get this to work for me @tuanphan 😞 My site is thenakedproject.com.au
tuanphan Posted April 22, 2022 Posted April 22, 2022 4 hours ago, thenakedproject said: I still cannot get this to work for me @tuanphan 😞 My site is thenakedproject.com.au You mean products on this page? https://thenakedproject.com.au/store/empowered 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!)
cristianmanuel Posted January 1 Posted January 1 @tuanphanmay you help with my site? https://www.avdcmty.com/shop would like mobile to be 2 on each row instead of stacked - thank you
tuanphan Posted January 1 Posted January 1 2 hours ago, cristianmanuel said: @tuanphanmay you help with my site? https://www.avdcmty.com/shop would like mobile to be 2 on each row instead of stacked - thank you Add this to Website Tools (under Not Linked) > Custom CSS @media screen and (max-width:640px) { .ProductList-grid { display: grid; grid-template-columns: repeat(2,1fr); } } cristianmanuel 1 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!)
cristianmanuel Posted January 2 Posted January 2 @tuanphanthank you so much, wishing you a great year! tuanphan 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment