usingmyhead Posted February 4, 2022 Share Posted February 4, 2022 I'm wondering if anyone has some code that will show an item from the Squarespace Accordion Block as open by default? I have checked the excellent thread by @tuanphan as well as others on the forum but couldn't find what I need. My client wants the first accordion item to be open when the page loads (then close/open as usual along with the others in the Accordion Block). Link to comment
paul2009 Posted February 4, 2022 Share Posted February 4, 2022 14 minutes ago, usingmyhead said: I'm wondering if anyone has some code that will show an item from the Squarespace Accordion Block as open by default? My client wants the first accordion item to be open when the page loads This is a built-in feature 🙂 usingmyhead 1 About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
usingmyhead Posted February 5, 2022 Author Share Posted February 5, 2022 Massive FACEPALM 🤣 paul2009 1 Link to comment
usingmyhead Posted February 5, 2022 Author Share Posted February 5, 2022 Just goes to show, you're never too experienced to learn something new (and never too proud to embarrass yourself on a public forum) 😜 Link to comment
paul2009 Posted February 5, 2022 Share Posted February 5, 2022 ...and never more shocked than me to discover that something is built in and doesn't require code 😲 creedon, usingmyhead and codeandtonic 3 About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
codeandtonic Posted February 5, 2022 Share Posted February 5, 2022 6 hours ago, paul2009 said: ...and never more shocked than me to discover that something is built in and doesn't require code 😲 I would have started coding without even checking for sure... 🤦♂️ usingmyhead and paul2009 2 Freelance Squarespace developer making plugins like Full-Width Blocks, Hover effects for grid gallery and the Darkmode plugin. I know Squarespace inside out and I'm able to solve pretty much any Squarespace code problem. Get in touch here! Link to comment
MayaViolet Posted March 22, 2022 Share Posted March 22, 2022 On 2/4/2022 at 10:06 AM, paul2009 said: This is a built-in feature 🙂 Any insight on how to set all accordion blocks to be opened at once? I understand it would most likely take some javascript... Attempting to have a list layout on Desktop with each section always open, but then make it more mobile friendly aka accordion-functioning on mobile. Any thoughts? Link to comment
tuanphan Posted March 24, 2022 Share Posted March 24, 2022 On 3/23/2022 at 4:39 AM, MayaViolet said: Any insight on how to set all accordion blocks to be opened at once? I understand it would most likely take some javascript... Attempting to have a list layout on Desktop with each section always open, but then make it more mobile friendly aka accordion-functioning on mobile. Any thoughts? Add to Design > Custom CSS /* Accordion Block - Expand all items */ .sqs-block-accordion .accordion-item__dropdown { display: block !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
MayaViolet Posted March 24, 2022 Share Posted March 24, 2022 9 hours ago, tuanphan said: Add to Design > Custom CSS /* Accordion Block - Expand all items */ .sqs-block-accordion .accordion-item__dropdown { display: block !important; } Oop - much easier than I thought 🤪 Thank you! 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