Accordions

mattypants's picture
mattypants
Fri, 03/31/2017 - 03:27
#1
Accordions

Is there a way to have all accordions closed on page load instead of having the first one open by default?

thanks,

-Matt

phuonght's picture
phuonght
Fri, 03/31/2017 - 05:03

Hi,

Did you mean accordions in Awecontent?

mattypants's picture
mattypants
Sat, 04/01/2017 - 02:06

Yes, these ones:

Image title

phuonght's picture
phuonght
Mon, 04/03/2017 - 22:21

For now, Awecontent does not support option for this object. If you would like, you need to add js code for it.

mattypants's picture
mattypants
Tue, 04/04/2017 - 03:22

Ah ok, thanks. Would I add that just before the accordion wherever I use it?

thanks,

-Matt

phuonght's picture
phuonght
Tue, 04/04/2017 - 04:40

You can please go to file main.js (sites\all\themes\md_structure\js\front)

mattypants's picture
mattypants
Tue, 04/04/2017 - 04:51

Ok, thanks. Will I be modifying an existing class in there, or adding a new one?

phuonght's picture
phuonght
Tue, 04/04/2017 - 05:07

New one of course.

mattypants's picture
mattypants
Tue, 04/04/2017 - 05:10

Thanks, you are a star.

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.