Create Tabs (as Section or Container)

Estimated reading time: 2 min

Rey can turn any Elementor Section or Container into a set of tabs: the columns (or the inner containers) become the tab panels, and a separate Toggle Boxes widget becomes the buttons that switch between them.

Keeping the two apart is the whole idea. Because the buttons are their own widget, you can place them anywhere on the page, style them like any other Rey element, and the panels themselves stay ordinary Elementor layout, with the full set of layout and design options.

A product section with three tab buttons above it, from the Amsterdam demo
The “Just landed” section of the Amsterdam demo is built this way.

Note: Tabs come from the Tabs for Elementor Sections & Containers module. If the Tabs Settings panel is missing, open Rey Theme → Modules and make sure that module is enabled.

Step 1: turn a Section or Container into tabs

Add a Section (or a Container) and give it one column per tab. Then select it, open the Layout tab of its settings, and find the Tabs Settings panel. Switch Enable Tabs on.

The Elementor panel showing a Section's Layout tab with the "Tabs Settings" group expanded: Enable Tabs on, the Tabs ID field, Tabs Effect and Transition Speed.

The editor confirms it right away: the section’s outline turns green, and its columns stop sitting side by side and are listed one under the other, full width. That is only how the editor shows them, so that you can reach every panel while you work. On the front end just one is visible at a time.

A section with tabs enabled, outlined in green in the Elementor editor
A section with tabs enabled.

Each column is one tab, and it holds whatever you want: a single image, a products grid, or an Inner Section if the panel needs a layout of its own.

Two more options come with it:

  • Tabs Effect: Fade, or Fade & Slide if you want the panel to move in as it appears.
  • Transition Speed, in milliseconds. Leave it empty for Rey’s default.

Using Containers instead of Sections

It works exactly the same on Elementor’s newer Container element, with one difference: the tabs are the inner containers, since containers have no columns. So the outer container is the one you enable Tabs on, and each inner container inside it is one tab.

The Elementor navigator showing a parent container with three inner containers nested inside it, and the Tabs Settings panel open on the parent.

Step 2: add the buttons that switch the tabs

Add another Section or Container, before or after the tabs one (the order does not matter, they find each other through an ID), and drop the Toggle Boxes widget into it.

In its settings, set Select target type to Tabs. A Tabs ID field appears underneath. This is what ties the buttons to the panels:

  1. Go back to the tabs Section, open Layout → Tabs Settings and copy the value of its Tabs ID field. Rey generates one automatically, something like tabs-64f1a2b3c4d5e, and you can replace it with anything you like as long as it is unique on the page.
  2. Paste it into the Toggle Boxes widget’s Tabs ID field.
The Toggle Boxes widget settings with target type set to Tabs and the Tabs ID field filled in

Then fill the Items list with one entry per tab: that is the button’s label, and optionally an icon. Set Trigger to On Click or On Hover depending on how you want the tabs to switch.

Nothing counts the panels for you. The number of items in Toggle Boxes has to match the number of columns (or inner containers) in the tabs section. An extra item switches to a tab that does not exist, and an extra column is a panel nothing can reach.

Step 3: preview it

Tabs are deliberately inactive inside the Elementor editor, otherwise half your content would be hidden while you are trying to edit it. To see them work, save and open the page preview.

Two short screencasts of the whole thing: building the tabs in the editor (video) and the result on the front end (video).

If the tabs do not switch

  • Check the two IDs match, character for character. A trailing space when copying is the most common cause.
  • You are looking at the editor. Tabs only run on the front end, so preview the page.
  • The tabs section has no columns. With Containers, the panels have to be inner containers, not widgets placed directly in the parent.
  • Two tab sections share the same ID on one page. Give each its own.

Was this article helpful?