Skip to main content

Toggle Panels

Live preview of the Toggle Panels element in the Salient WordPress theme. Three FAQ rows in the Minimal Shadow toggle style, the last open; clicking another question opens it and closes that one, and turns its plus into a minus and slides its answer open. Sample content, for demonstration only.

A WordPress theme with its own page builder elements, templates and a design system, maintained since 2013.

No. Every page is built from elements in the builder, and each one is configured from a panel rather than written.

Yes. Rows, columns and elements carry their own tablet and phone settings, and the demos are built mobile first.

Toggle Panels is an accordion: a stack of headings that expand to reveal their content when clicked. Each panel is a full page builder area, so a panel can hold anything, though in practice most hold a paragraph or two.

It is the right element whenever a page has more answers than anyone wants to read at once. An FAQ section is the obvious case; shipping and returns information, technical specifications and course syllabi are the same shape.

Styles​

Style is the first setting and it decides which of the others apply: four of the nine belong to Animated Circle alone.

  • Default A bordered panel with a plus or minus indicator.
  • Animated Circle A circular toggle that animates open, with its own position, size, color and gap settings.
  • Minimal Type and a divider line, no box.
  • Minimal Shadow The minimal treatment on a raised card.
  • Inline Small A compact variant for dense lists or sidebars.

Settings​

  • Style Choice The panel treatment, from the five above.
  • Animated Circle Position Choice Animated Circle only. Which side of the heading the indicator sits on.
  • Animated Circle Size Number Animated Circle only. The indicator's diameter, 40 to begin with.
  • Toggle Background Color Color Animated Circle only. The panel background.
  • Enable Divider Toggle Animated Circle only. Adds a line between panels.
  • Toggle Gap Number Animated Circle only. Vertical space between panels.
  • Accordion Toggles Toggle Allows only one panel open at a time, so opening one closes the last.
  • Starting Functionality Choice Accordion Toggles only. First Toggle Open or First Toggle Closed when the page loads.
  • Border Radius Choice Default, Minimal Shadow and Animated Circle only. Corner rounding on the panels.
Every panel open by default

There is no setting for it, and that is deliberate: an accordion whose panels all start open is a list, and a list is easier to read. If you want everything visible, use ordinary text blocks instead.

Accessibility​

Panels open on click, are reachable with the keyboard and announce their expanded state, so the element is usable without a mouse. Write the panel heading as a question or a noun phrase that makes sense read on its own, since a screen reader announces it without the content beneath it.