Maksymrewko Posted September 15, 2022 Posted September 15, 2022 Site URL: https://www.ukrainiandanceworld.com/dance-groups-test1234 Hi there, I have multiple blog pages on my website and they already have custom CSS. In this example I have a blog page where i have expanded the columns to 8 on desktop but on the mobile breakpoint I would ideally like 2 or 3 columns. Below CSS doesnt seem to be working and is still presenting one column in mobile? Any help woud be appreciated //columns number dance group (new)- desktop section[data-section-id="6265da30a06e8a480cbe78d2"] .blog-basic-grid { grid-template-columns: repeat(8, 1fr) !important; } //columns number dance group (new) - mobile @media only screen and (max-width: 768px) {section[data-section-id="6265da30a06e8a480cbe78d2"] .blog-basic-grid { grid-template-columns: repeat(3, 1fr) !important; } }
Ziggy Posted September 15, 2022 Posted September 15, 2022 5 hours ago, Maksymrewko said: //columns number dance group (new)- desktop section[data-section-id="6265da30a06e8a480cbe78d2"] .blog-basic-grid { grid-template-columns: repeat(8, 1fr) !important; } //columns number dance group (new) - mobile @media only screen and (max-width: 768px) {section[data-section-id="6265da30a06e8a480cbe78d2"] .blog-basic-grid { grid-template-columns: repeat(3, 1fr) !important; } } Try this adjustment of your code: //columns number dance group (new)- desktop section[data-section-id="6265da30a06e8a480cbe78d2"] .blog-basic-grid { grid-template-columns: repeat(8, 1fr) !important; } //columns number dance group (new) - mobile @media only screen and (max-width:768px) { section[data-section-id="6265da30a06e8a480cbe78d2"] #gridThumbs { grid-template-columns: 1fr 1fr !important; } } Please let me know if this works (or not), and upvote if it does! 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! 📈 SEO Space (Referral link) Ⓜ️ Will Myers' Plugins & Tutorials (Referral link) 🔌 Ghost Squarespace Plugins (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee?
Maksymrewko Posted September 16, 2022 Author Posted September 16, 2022 @Ziggy thanks for your reply - unfortuantely the code adjustment didnt work.
tuanphan Posted September 18, 2022 Posted September 18, 2022 On 9/16/2022 at 10:36 AM, Maksymrewko said: thanks for your reply - unfortuantely the code adjustment didnt work. Try this new code //columns number dance group (new)- desktop // section[data-section-id="6265da30a06e8a480cbe78d2"] .blog-basic-grid { grid-template-columns: repeat(8, 1fr) !important; } //columns number dance group (new) - mobile // @media only screen and (max-width:768px) { section[data-section-id="6265da30a06e8a480cbe78d2"] #gridThumbs { grid-template-columns: 1fr 1fr !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!)
Maksymrewko Posted September 29, 2022 Author Posted September 29, 2022 On 9/17/2022 at 11:08 PM, tuanphan said: Try this new code //columns number dance group (new)- desktop // section[data-section-id="6265da30a06e8a480cbe78d2"] .blog-basic-grid { grid-template-columns: repeat(8, 1fr) !important; } //columns number dance group (new) - mobile // @media only screen and (max-width:768px) { section[data-section-id="6265da30a06e8a480cbe78d2"] #gridThumbs { grid-template-columns: 1fr 1fr !important; } } @tuanphan unfortunalty this code doesn't work. I'm still seeing one column in the mobile breakpoint
tuanphan Posted September 30, 2022 Posted September 30, 2022 13 hours ago, Maksymrewko said: @tuanphan unfortunalty this code doesn't work. I'm still seeing one column in the mobile breakpoint The url doesn't exist now. Can you check it again? 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!)
Maksymrewko Posted October 1, 2022 Author Posted October 1, 2022 On 9/30/2022 at 4:28 AM, tuanphan said: The url doesn't exist now. Can you check it again? Hi Tuanphan, I managed to solve this with the lazy summaries plug in - all sorted now Many thanks Maksym tuanphan 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment