NikosPhadji Posted March 15, 2021 Share Posted March 15, 2021 (edited) Site URL: https://octopus-pentagon-c2h7.squarespace.com/ Hi! I really tried not to annoy anyone with my question as I'm sure some people faced the same issue but I can't find the right code for my problem. On my home page, I've got a row of 4 product blocks that automatically change into 1 per row on mobile. How can I change them in 2 per row? Same thing with the text blocks in the footer. Password:1234 Thanks in advance, Yann Edited March 15, 2021 by NikosPhadji Beyondspace 1 Link to comment
Solution Beyondspace Posted March 20, 2021 Solution Share Posted March 20, 2021 On 3/15/2021 at 10:45 PM, NikosPhadji said: Site URL: https://octopus-pentagon-c2h7.squarespace.com/ Hi! I really tried not to annoy anyone with my question as I'm sure some people faced the same issue but I can't find the right code for my problem. On my home page, I've got a row of 4 product blocks that automatically change into 1 per row on mobile. How can I change them in 2 per row? Same thing with the text blocks in the footer. Password:1234 Thanks in advance, Yann You can take advantage of the html block above the product row to target it @media only screen and (max-width: 600px) { #block-yui_3_17_2_1_1613401829864_7597 + .sqs-row .sqs-col-3 { width: 50% !important; float: left !important; } #block-yui_3_17_2_1_1613401829864_7597 + .sqs-row { display: flex; flex-direction: row; flex-wrap: wrap; } } 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
tuanphan Posted March 24, 2021 Share Posted March 24, 2021 On 3/15/2021 at 10:45 PM, NikosPhadji said: Site URL: https://octopus-pentagon-c2h7.squarespace.com/ Hi! I really tried not to annoy anyone with my question as I'm sure some people faced the same issue but I can't find the right code for my problem. On my home page, I've got a row of 4 product blocks that automatically change into 1 per row on mobile. How can I change them in 2 per row? Same thing with the text blocks in the footer. Password:1234 Thanks in advance, Yann Do you still need help? 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
NikosPhadji Posted March 24, 2021 Author Share Posted March 24, 2021 Hi guys, Thank you very much for taking the time to help. @bangank36 Thank you so much mate. It worked perfectly. I think I tried this code before but use it with a wrong block id. I could use your help with the text blocks in the footer. Would like to make one row with the text blocks and then the newsletter form underneath. Thank you again Link to comment
cloecloa Posted September 4, 2022 Share Posted September 4, 2022 Hi all, Thanks so much for posting this, it has been really helpful and fixed my problem also. I have noticed, however that it doesn't work on all the product blocks on the site. I had previously thought it was because some product blocks were in an accordion but I have removed them from this and it is still not working. It works on the top section of product blocks but when these lower down blocks are separated by heading text it stops working. Are you able to help? Thanks, Chloe Link to comment
tuanphan Posted September 5, 2022 Share Posted September 5, 2022 14 hours ago, cloecloa said: Hi all, Thanks so much for posting this, it has been really helpful and fixed my problem also. I have noticed, however that it doesn't work on all the product blocks on the site. I had previously thought it was because some product blocks were in an accordion but I have removed them from this and it is still not working. It works on the top section of product blocks but when these lower down blocks are separated by heading text it stops working. Are you able to help? Thanks, Chloe What is your site url? We can check easier 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
cloecloa Posted September 5, 2022 Share Posted September 5, 2022 Hello, thank you for replying! The page I am trying to sort this on is below https://www.howaboutnope.com/shop Link to comment
tuanphan Posted September 6, 2022 Share Posted September 6, 2022 On 9/5/2022 at 3:27 PM, cloecloa said: Hello, thank you for replying! The page I am trying to sort this on is below https://www.howaboutnope.com/shop Try adding to Design > Custom CSS @media screen and (max-width:767px) { div#block-yui_3_17_2_1_1662289636552_14255~.row .span-4 { width: 50% !important; float: left !important; } } 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
cloecloa Posted September 6, 2022 Share Posted September 6, 2022 Hi Tuanphan, Thank you so so much for your help! That sorted the bulk buy sections and I can swap out the block-yui code for all other sections. I did try it for the "single bars" section and it doesn't work, from what I see it only has a block- Id. I attached a screenshot because not sure if it is possible in accordion or if I need a different id number? Link to comment
tuanphan Posted September 8, 2022 Share Posted September 8, 2022 On 9/6/2022 at 11:39 PM, cloecloa said: Hi Tuanphan, Thank you so so much for your help! That sorted the bulk buy sections and I can swap out the block-yui code for all other sections. I did try it for the "single bars" section and it doesn't work, from what I see it only has a block- Id. I attached a screenshot because not sure if it is possible in accordion or if I need a different id number? With single bars, use this code @media screen and (max-width:640px) { div#block-665a664b59457cba898d+div .span-6 { width: 50% !important; float: left !important; } } 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
cloecloa Posted September 13, 2022 Share Posted September 13, 2022 thank you so so much for you help! 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