Ladybug Posted November 8, 2020 Share Posted November 8, 2020 Site URL: https://www.faceplusform.com/ Hello, can anyone help me with the code for the portfolio grid on my homepage? I was able to adjust buttons to 2 columns on mobile, but I have difficulty finding the right solution for the portfolio showing in 2 or 3 columns on mobile? Also the same question for any section on the website that has 3 or 4 images (not gallery sections), how can I display them in 2 or 3 columns? Link to comment
Beyondspace Posted November 8, 2020 Share Posted November 8, 2020 You can use this custom css, also what is your other images section? @media screen and (max-width: 767px) { .portfolio-grid-overlay { grid-template-columns: repeat(2,minmax(0,1fr)); } } 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
Ladybug Posted November 8, 2020 Author Share Posted November 8, 2020 30 minutes ago, bangank36 said: You can use this custom css, also what is your other images section? @media screen and (max-width: 767px) { .portfolio-grid-overlay { grid-template-columns: repeat(2,minmax(0,1fr)); } } Thank you for the answer but it is not working! I have already tried this code, and now I have tried it again but it doesn't change anything even when I target this section. Link to comment
Beyondspace Posted November 8, 2020 Share Posted November 8, 2020 1 minute ago, Ladybug said: Thank you for the answer but it is not working! I have already tried this code, and now I have tried it again but it doesn't change anything even when I target this section. have you added it to the page? I dont see the code there 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
Ladybug Posted November 8, 2020 Author Share Posted November 8, 2020 3 minutes ago, bangank36 said: have you added it to the page? I dont see the code there I have added to the Custom CSS. Link to comment
Beyondspace Posted November 8, 2020 Share Posted November 8, 2020 4 minutes ago, Ladybug said: I have added to the Custom CSS. I saw your code there an it working on mine browser 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
Ladybug Posted November 8, 2020 Author Share Posted November 8, 2020 Maybe it takes more time to work! How would you solve last section in footer so it displays text in 2 columns also? Thank you! Link to comment
Beyondspace Posted November 8, 2020 Share Posted November 8, 2020 17 minutes ago, Ladybug said: Maybe it takes more time to work! How would you solve last section in footer so it displays text in 2 columns also? Thank you! @media screen and (max-width: 767px) { .portfolio-grid-overlay { grid-template-columns: repeat(2,minmax(0,1fr)); } section[data-section-id="5f2eff4be7555e0b38f3f9e6"] [data-type="page-section"] > .row { flex-direction: row; flex-wrap: wrap; display: flex; } section[data-section-id="5f2eff4be7555e0b38f3f9e6"] [data-type="page-section"] > .row .span-3 { flex-grow: 1; width: 50% !important; } section[data-section-id="5f2eff4be7555e0b38f3f9e6"] [data-type="page-section"] > .row .row { width: 100% !important; } } 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
Ladybug Posted November 8, 2020 Author Share Posted November 8, 2020 5 minutes ago, bangank36 said: Everything is working perfectly, thank you so much! Beyondspace 1 Link to comment
Billy1996 Posted April 22, 2021 Share Posted April 22, 2021 Hi @bangkank36, i am having the same issue for https://giraffe-fife-xnsh.squarespace.com/ The code doesn't seem to change anything is there a chance that other code could be overriding and preventing it from working? Thanks Link to comment
tuanphan Posted April 24, 2021 Share Posted April 24, 2021 On 4/22/2021 at 10:35 PM, Billy1996 said: Hi @bangkank36, i am having the same issue for https://giraffe-fife-xnsh.squarespace.com/ The code doesn't seem to change anything is there a chance that other code could be overriding and preventing it from working? Thanks Add to Design > Custom CSS /* Portfolio mobile 2 items */ @media screen and (max-width:767px) { div#gridThumbs { grid-template-columns: repeat(2,1fr) !important; } } Billy1996 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!) Link to comment
zachmcnair Posted July 24, 2021 Share Posted July 24, 2021 Hey @tuanphan! I've implemented this code plus a couple of other additions to help with styling on mobile. However, I noticed that desktop started changing as well, but I'd prefer there be no styling changes done on desktop. Any help you can provide would be great! jala-t.squarespace.com pass: jala /* Portfolio mobile 2 items */ @media screen and (max-width:767px) .portfolio-grid-overlay { grid-template-columns: repeat(2,minmax(0,1fr))!important; grid-column-gap: 23px!important; padding-top: 22px!important; } Thanks, Zach Link to comment
tuanphan Posted July 24, 2021 Share Posted July 24, 2021 2 hours ago, zachmcnair said: Hey @tuanphan! I've implemented this code plus a couple of other additions to help with styling on mobile. However, I noticed that desktop started changing as well, but I'd prefer there be no styling changes done on desktop. Any help you can provide would be great! jala-t.squarespace.com pass: jala /* Portfolio mobile 2 items */ @media screen and (max-width:767px) .portfolio-grid-overlay { grid-template-columns: repeat(2,minmax(0,1fr))!important; grid-column-gap: 23px!important; padding-top: 22px!important; } Thanks, Zach Your code is invalide, missing some { symbol. It should be /* Portfolio mobile 2 items */ @media screen and (max-width:767px) { .portfolio-grid-overlay { grid-template-columns: repeat(2,minmax(0,1fr))!important; grid-column-gap: 23px!important; padding-top: 22px!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
Beagood Posted January 18, 2022 Share Posted January 18, 2022 On 11/8/2020 at 3:16 PM, bangank36 said: @media screen and (max-width: 767px) { .portfolio-grid-overlay { grid-template-columns: repeat(2,minmax(0,1fr)); } } Hello - I've tried this on my site www.toolshed.london to get two columns on mobile but it doesn't seem to work. Can someone check please? Link to comment
Beagood Posted January 19, 2022 Share Posted January 19, 2022 Update - it seems to work - must take a while to propagate? tuanphan and Beyondspace 2 Link to comment
EbbaHar Posted November 25, 2022 Share Posted November 25, 2022 (edited) Hi! I am struggling with the same thing; wanting to adjust the portfolio site to 2-columns. I I've used this code and I just make it half the size, but I want the projects to be placed next to each other. How do I do that? Site: tan-octopus-ltp6.squarespace.com Password: squarespacesite /* 2 Column Portfolio Grid */ @media only screen and (max-width:640px) { section[data-section-id="6374d66e5a73530ba9873521"] { display: flex; flex-wrap: wrap; justify-content: space-between; width: 50%; } } Edited November 25, 2022 by EbbaHar Link to comment
Beyondspace Posted November 26, 2022 Share Posted November 26, 2022 18 hours ago, EbbaHar said: Hi! I am struggling with the same thing; wanting to adjust the portfolio site to 2-columns. I I've used this code and I just make it half the size, but I want the projects to be placed next to each other. How do I do that? Site: tan-octopus-ltp6.squarespace.com Password: squarespacesite /* 2 Column Portfolio Grid */ @media only screen and (max-width:640px) { section[data-section-id="6374d66e5a73530ba9873521"] { display: flex; flex-wrap: wrap; justify-content: space-between; width: 50%; } } You can try adding to Home > Design > Custom Css @media only screen and (max-width: 767px) { section[data-section-id="6374d66e5a73530ba9873521"] { width: 100%; } .portfolio-grid-overlay { grid-template-columns: repeat(2,1fr) } } Support me by pressing 👍 or marking as solution if this useful for you 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
Beyondspace Posted November 26, 2022 Share Posted November 26, 2022 My testing 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
EbbaHar Posted December 5, 2022 Share Posted December 5, 2022 (edited) When you're testing it it looks exactly like I want to, but it doesn't work for me... 😞 I can code the section from section-id, but it seems like the portfolio-grid-overlay coding doesn't work. Edited December 5, 2022 by EbbaHar Link to comment
Beyondspace Posted December 5, 2022 Share Posted December 5, 2022 I check that it works now on your site Have you checked it on live site/ Incognito mode? 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
EbbaHar Posted December 5, 2022 Share Posted December 5, 2022 Yes it does! Thank you a lot 🙂 It seems like it took a while for it to apply? Anyhow, thanks for the help! 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