0

I'm using the Field Group module to make accordions on my site, but it loads JQuery and slows the page down. Is there a way to do this without JS?

0
1

Yes, you can use the HTML 5 details tag.

On the content type display administration page, create a field group.

For the Format, chose HTML element.

For Field group label, enter the text you want to show to click to display the rest of the text.

For the Element, enter details.

For Show Label, select Yes.

For Label element, enter summary.

To style with CSS, add extra CSS classes as needed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.