abc Posted September 13 Share Posted September 13 (edited) Squarespace accordion only allows vertical layout, no matter the screen size. I was wondering if it's possible to change the accordion layout to horizontal on wider screens (e.g. desktops). Here's what I'm trying to achieve: For mobile screens: For desktop screens: Edited September 13 by abc Link to comment
Ziggy Posted September 13 Share Posted September 13 7 hours ago, abc said: For desktop screens: You would simply need two accordion blocks. 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? Link to comment
abc Posted September 13 Author Share Posted September 13 11 minutes ago, Ziggy said: You would simply need two accordion blocks. Tried that before. It's not perfect. Two separate accordions do not communicate with each other, in other words, one does not collapse when another opens, etc. Is there no way to display accordion titles in a row instead of a column? Link to comment
Ziggy Posted September 13 Share Posted September 13 Try this Custom CSS: @media only screen and (min-width:940px) { .sqs-block-accordion .accordion-items-container { columns: 2; -webkit-columns: 2; -moz-columns: 2; } } abc 1 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? Link to comment
abc Posted September 13 Author Share Posted September 13 1 hour ago, Ziggy said: Try this Custom CSS: @media only screen and (min-width:940px) { .sqs-block-accordion .accordion-items-container { columns: 2; -webkit-columns: 2; -moz-columns: 2; } } Right, it split it into two columns, but everything else is messed up. I don't think I have the energy or the expertise to fix it. Been working on my main product list for the last 72 hours. Thanks anyway. Link to comment
Ziggy Posted September 13 Share Posted September 13 44 minutes ago, abc said: but everything else is messed up In what way? 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? Link to comment
abc Posted September 13 Author Share Posted September 13 4 minutes ago, Ziggy said: In what way? Width, height, padding, margins, all off. Link to comment
abc Posted September 13 Author Share Posted September 13 Notice how when you expand the first dropdown, it affects the second one because categories in the first dropdown can't all fit inside its container. In its current state, it would need a lot of fixing. Link to comment
Solution Ziggy Posted September 13 Solution Share Posted September 13 21 minutes ago, abc said: Notice how when you expand the first dropdown, it affects the second one because categories in the first dropdown can't all fit inside its container. In its current state, it would need a lot of fixing. This would be a different approach: @media only screen and (min-width: 940px) { .sqs-block-accordion .accordion-items-container { display: flex; flex-wrap: wrap; justify-content: space-around; } .sqs-block-accordion .accordion-item { width: 50%; } } abc 1 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? Link to comment
abc Posted September 13 Author Share Posted September 13 4 hours ago, Ziggy said: This would be a different approach: @media only screen and (min-width: 940px) { .sqs-block-accordion .accordion-items-container { display: flex; flex-wrap: wrap; justify-content: space-around; } .sqs-block-accordion .accordion-item { width: 50%; } } Perfect! Thank you so much! Ziggy 1 Link to comment
Ziggy Posted September 13 Share Posted September 13 4 hours ago, abc said: Perfect! Thank you so much! Brill abc 1 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? 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