Menu
All plugins

Content Switcher for Bricks

Content Switcher shows one of several blocks of content at a time, chosen from a row of options. Every panel is ordinary Bricks content, so your styles, global classes and anchors keep working.

Open the live demo

The element

  • Add the Content Switcher element, then add one direct Bricks block for each option.
  • Keep the option rows and the panel blocks in the same order. Give each option a label, an optional badge and a unique link key.
  • Set the default option, whether links with a hash select an option, and whether the visitor’s choice is remembered.
  • Choose the panel effect, duration and easing, and how the pill moves between options.

In the builder

You can show all panels, only the selected panel, or a working preview of the interaction. Existing panel IDs are kept, so anything that targets them still works.

Accessibility and fallbacks

  • Arrow keys, Home and End select options, and hidden panels are removed from the focus order.
  • Without JavaScript all the content stays visible.
  • If the number of options and panels does not match, every panel stays visible rather than losing content.

Requirements

WordPress, PHP 8.1 or newer and Bricks. Built and tested on Bricks 2.4.3.