Jump to content

Display an open accordion by default in the desktop version but closed on mobile

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

On 8/1/2023 at 8:56 PM, Tara_099 said:

I also want to know how to do the same thing, can you provide the code? My page is here:

https://gopher-tomato-twpa.squarespace.com/services

Password: hello

Thanks

First, remove this code

.sqs-block-accordion .accordion-item__dropdown--open {
    display: block;
}

Next, add this new code

@media screen and (min-width:992px) {
.sqs-block-accordion .accordion-item__dropdown--open {
    display: block;
}
}

 

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.