Description
Accordions are interactive components that allow users to expand or collapse sections of content on a webpage. Useful for large pages, FAQs, and more.
Adding and Managing Accordion Items
- Navigate to Content->Add Content->Accordion.
- Fill in the fields:
- Title: The header text of the accordion
- Body: The text within the dropdown
- Accordion to apply to: This is the field that determines which accordion group this item will be a part of. You will need to set the group on the page you intend to have the accordions. If you would like additional headings to separate out your accordions, you will need to create tags that are child elements of the selected field. For example, each accordion in the above picture is set to “Cars” or “Trucks” and is grouped on the page due to the parent “Vehicles” tag set on the page.
- Save
- Navigate to the intended pages edit page.
- Set the accordion field to the proper parent tag
- Navigate to Structure -> Block Layout
- Select place block where you would like the accordions on that page.
- Search for accordions and place it
- Limit it to the intended page
- Note: You can share this accordion block across the site if they share a region. You would simply add to the list of pages it is restricted to.
- Save