FreeWidget

Content Switcher widget documentation

Content Switcher shows a switcher bar and one pane per state. Add two to four states and choose how they look.

Overview

The Xtra Content Switcher is a free Elementor widget that lets visitors flip between two to four states of content with one control. Pick a classic toggle switch, pill buttons, a segmented control, underline tabs or a bar with a sliding indicator, and show a different pane for each state.

Each state can hold rich text, an image or a saved Elementor template, so a switch can change a short message, a screenshot or an entire section. Labels can have icons and badges such as Save 20%, panes fade or slide in, and you can keep every pane at the same height so the page does not jump.

Several switchers on one page can be linked with a Group ID, a state can be opened from a link with a URL hash or query, and the visitor choice can be remembered for the browser session. The switcher is built as accessible tabs with arrow-key, Home and End navigation, and it drives the billing switch of the Pricing Table widget.

You will find the widget in the Elementor panel under the Xtra widgets, or search for “Content Switcher”. It is part of the free Xtra Addons for Elementor plugin — see the Content Switcher widget page for live demos.

Quick start

  1. Drag the Content Switcher widget into a container.
  2. Under Content → States, edit the states. Give each one a Label and, if you want, an Icon and a Badge, then choose its Content Type: Text Editor, Saved Template or Image.
  3. Open Content → Switcher and choose the Style: Classic Toggle Switch, Pill Buttons, Segmented Control, Underline Tabs or Slider.
  4. In the same section set the Default Active State, switch Show Content Panes on or off, and choose the Pane Transition, Transition Duration and Keep Equal Height.
  5. Set the Alignment, Labels Direction, Full Width Switcher, Switcher Position and the Accessible Label.
  6. To link several switchers, open Content → Sync, Links & Memory and give them the same Group ID. Use Deep Link and Remember Choice if you need them.
  7. In the Style tab, style the Switcher Bar, Labels (normal, hover and active), Toggle Switch, Sliding Indicator, Icons and Badge.
  8. Style the Content Panes: text, background, border, radius, shadow, padding and minimum height.

Options reference

All 76 options of the Content Switcher widget, as they appear in the Elementor panel. Many options are responsive and can be set separately for desktop, tablet and mobile.

Content tab 15 options

States

OptionTypeValues and notes
States (2 to 4) Repeater list Only the first 4 states are used.

Switcher

OptionTypeValues and notes
Style Select Classic Toggle Switch (2 states)Pill ButtonsSegmented ControlUnderline TabsSlider (sliding indicator) The toggle switch needs exactly 2 states; with 3 or 4 it falls back to pill buttons.
Default Active State Number Position of the state shown first (1 = first).
Show Content Panes On / off Turn off to use only the switch, e.g. a monthly / yearly toggle that drives other widgets through a Group ID.
Pane Transition Select FadeSlide UpNone
Transition Duration (ms) Slider
Keep Equal Height On / off All panes share the height of the tallest one, so the page never jumps when switching.
Switcher Position Select Above ContentBelow Content
Alignmentresponsive Choice StartCenterEnd
Labels Directionresponsive Choice RowStacked Stack the labels vertically on narrow screens (set it on Tablet / Mobile).
Full Width Switcher On / off Stretch the switcher over the whole row with equal-width labels.
Accessible Label Text Read by screen readers for the group of switch labels.

Sync, Links & Memory

OptionTypeValues and notes
Group ID Text Switchers on the same page with the same Group ID change together. Every change fires the "xtra:content-switch" event on document with { group, index, slug }; dispatch the same event to control the switchers from your own code. A grouped state is also mirrored to the html attribute data-xtra-switch-{group} for CSS. Pricing Tables with the same Billing Switch Group follow this switcher automatically (first state = monthly price, other states = yearly price) - use "billing" as the Group ID.
Deep Link Select OffURL hash (#group=slug)URL query (?group=slug) Share a link that opens a specific state. The Group ID (or "switch") is used as the parameter name.
Remember Choice On / off Keeps the visitor's choice for the rest of the browser session (sessionStorage).

Style tab 61 options

Switcher Bar

OptionTypeValues and notes
Gap Between Labelsresponsive Slider
Backgroundresponsive Background Classic color or image, gradient, video and slideshow backgrounds with position, size and effects.
Border Type Select DefaultNoneSolidDoubleDottedDashedGroove
Border Widthresponsive Dimensions
Border Color Color
Border Radiusresponsive Dimensions
Box Shadow Box shadow
Paddingresponsive Dimensions
Space to Contentresponsive Slider

Labels

OptionTypeValues and notes
Typographyresponsive Typography Font family, size, weight, transform, style, decoration, line height, letter spacing and word spacing.
Text Color Color
Backgroundresponsive Background Classic color or image, gradient, video and slideshow backgrounds with position, size and effects.
Border Color Color
Box Shadow Box shadow
Border Type Select DefaultNoneSolidDoubleDottedDashedGroove
Border Widthresponsive Dimensions
Border Radiusresponsive Dimensions
Paddingresponsive Dimensions
Min Widthresponsive Slider
Keyboard Focus Ring Color
Transition (s) Slider

Toggle Switch

OptionTypeValues and notes
Track Widthresponsive Slider
Track Heightresponsive Slider
Knob Insetresponsive Slider
Backgroundresponsive Background Classic color or image, gradient, video and slideshow backgrounds with position, size and effects.
Border Type Select DefaultNoneSolidDoubleDottedDashedGroove
Border Widthresponsive Dimensions
Border Color Color
Box Shadow Box shadow
Knob Color Color

Sliding Indicator

OptionTypeValues and notes
Backgroundresponsive Background Classic color or image, gradient, video and slideshow backgrounds with position, size and effects.
Thicknessresponsive Slider
Border Radiusresponsive Dimensions
Box Shadow Box shadow
Slide Duration (s) Slider

Icons

OptionTypeValues and notes
Sizeresponsive Slider
Spacingresponsive Slider
Color Color

Badge

OptionTypeValues and notes
Typographyresponsive Typography Font family, size, weight, transform, style, decoration, line height, letter spacing and word spacing.
Text Color Color
Background Color
Border Type Select DefaultNoneSolidDoubleDottedDashedGroove
Border Widthresponsive Dimensions
Border Color Color
Border Radiusresponsive Dimensions
Paddingresponsive Dimensions
Marginresponsive Dimensions

Content Panes

OptionTypeValues and notes
Text Alignmentresponsive Choice StartCenterEnd
Typographyresponsive Typography Font family, size, weight, transform, style, decoration, line height, letter spacing and word spacing.
Text Color Color
Heading Color Color
Link Color Color
Backgroundresponsive Background Classic color or image, gradient, video and slideshow backgrounds with position, size and effects.
Border Type Select DefaultNoneSolidDoubleDottedDashedGroove
Border Widthresponsive Dimensions
Border Color Color
Border Radiusresponsive Dimensions
Box Shadow Box shadow
Paddingresponsive Dimensions
Min Heightresponsive Slider
Image Radiusresponsive Dimensions

Tips

  • The Default Active State starts at 1, so 2 opens the second state.
  • Use the toggle only for two states, such as monthly and yearly or light and dark.
  • Switch on Keep Equal Height when the panes have different amounts of text, so the layout does not jump.
  • To switch a billing period on a Pricing Table, set the Group ID to billing and turn Show Content Panes off.
  • Give every switcher a clear Accessible Label so screen reader users know what it changes.

Frequently asked questions

Is the Xtra Content Switcher widget free?

Yes. Content Switcher is included in the free Xtra Addons for Elementor plugin. No Elementor Pro is required.

How many states can a switcher have?

Two to four. Only the first four states are used. The classic toggle switch works with exactly two states and falls back to pill buttons when there are more.

Can a state show an Elementor template or an image?

Yes. Each state has a Content Type: Text Editor, Saved Template or Image, so a switch can change a short text, a picture or a whole saved section.

How do I make a monthly and yearly pricing toggle?

Add a Content Switcher with two states, set its Group ID to billing and turn Show Content Panes off. Pricing Tables with the same Billing Switch Group follow it: the first state shows the monthly price, the other state the yearly price.

Can I link directly to a specific state?

Yes. Under Sync, Links & Memory, set Deep Link to URL hash or URL query and give each state a slug. The Group ID is used as the parameter name, so a link ending in #billing=yearly opens the state whose slug is yearly.

Is the switcher keyboard accessible?

Yes. It is built as tabs with an accessible label. Arrow keys move between states, and Home and End jump to the first and last state.

See the Content Switcher widget in action

Live demos, features and use cases are on the widget page.

Open widget page