Content · Elementor

Content Toggle widget for Elementor

Content Toggle is an Elementor widget in King Addons. Enable it under King Addons → Dashboard if it is off, then search for “Content Toggle” in the Elementor panel.

Get King Addons

This page describes the PHP/JS for this widget — not a renamed stub. Install the free plugin from WordPress.org.

Get King Addons

What it actually does

Content Toggle is an Elementor widget in King Addons. Enable it under King Addons → Dashboard if it is off, then search for “Content Toggle” in the Elementor panel.

Content Toggle Widget (Free).

render() writes HTML data attributes: data-active-class, data-animation, data-default-state, data-hidden-class, data-primary-hide, data-primary-targets, data-secondary-hide, data-secondary-targets.

How to add it in Elementor

  1. Install King Addons. Install Elementor and King Addons. Get King Addons from WordPress.org.
  2. Edit with Elementor. Open a page and click Edit with Elementor.
  3. Insert the widget. Search the panel for “Content Toggle”. Typing “king” lists every King Addons widget.
  4. Set inspector controls from this widget’s PHP. Configure “Primary Label”, “Secondary Label”, “Default State”, “Alignment”. Style and Content tabs are listed on this page.

When to use it

Tip: After King Addons is active, type king in the Elementor search box to list every widget, including Content Toggle.

Inspector controls from this widget’s PHP

ControlWhat the code does
Toggle — Primary LabelPrinted in the widget HTML from render().
Toggle — Secondary LabelPrinted in the widget HTML from render().
Toggle — Default StateChoose which content is visible on load.
Toggle — AlignmentWrites CSS `justify-content` onto the widget’s front-end markup. Options: Left; Center; Right.
Toggle — AnimationSlide animation is available in the Pro version.
Primary Content — SourceOptions: Text; Image.
Primary Content — ContentWysiwyg inspector control (`kng_primary_content`).
Primary Content — ImageMedia Library attachment(s); render() uses the URL/ID as the image source.
Primary Content — Image SizeElementor image-size group (thumbnail, medium, large, full, custom).
Secondary Content — SourceOptions: Text; Image.
Secondary Content — ContentWysiwyg inspector control (`kng_secondary_content`).
Secondary Content — ImageMedia Library attachment(s); render() uses the URL/ID as the image source.
Secondary Content — Image SizeElementor image-size group (thumbnail, medium, large, full, custom).
Toggle — Toggle SpacingWrites CSS `margin-bottom` onto the widget’s front-end markup. (min 0, max 64).
Toggle — Switch WidthSpacing/size control (min 80, max 200).
Toggle — Switch HeightSpacing/size control (min 28, max 80).
Toggle — TrackColor written to this widget’s CSS selector.
Toggle — Track ActiveColor written to this widget’s CSS selector.
Toggle — ThumbColor written to this widget’s CSS selector.
Toggle — BorderElementor border group: type, width, color, and radius when the group includes it. Selector: `{{WRAPPER}} .king-addons-content-toggle__switch`.
Toggle — Box ShadowElementor box-shadow group for the selector. Selector: `{{WRAPPER}} .king-addons-content-toggle__switch`.
Toggle — TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .king-addons-content-toggle__label`.
Toggle — LabelWrites CSS `color` onto the widget’s front-end markup.
Toggle — Label ActiveWrites CSS `color` onto the widget’s front-end markup.
Content Area — BackgroundElementor background group: classic color/image or gradient on the selector. Selector: `{{WRAPPER}} .king-addons-content-toggle__pane`.
Content Area — BorderElementor border group: type, width, color, and radius when the group includes it. Selector: `{{WRAPPER}} .king-addons-content-toggle__pane`.
Content Area — Border RadiusWrites CSS `border-radius` onto the widget’s front-end markup. (min 0, max 50).
Content Area — PaddingWrites CSS `padding` onto the widget’s front-end markup.
Content Area — Content GapWrites CSS `gap` onto the widget’s front-end markup. (min 0, max 48).
Content Area — Box ShadowElementor box-shadow group for the selector. Selector: `{{WRAPPER}} .king-addons-content-toggle__pane`.
Content Area — TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .king-addons-content-toggle__pane`.
Content Area — TextWrites CSS `color` onto the widget’s front-end markup.

Content and Style tabs from this widget’s PHP, including repeater fields and group controls (typography, background, border, shadow). Elementor’s Advanced tab is core Elementor and is not listed here.

FAQ

What does Content Toggle actually change on the page?

Content Toggle is an Elementor widget in King Addons. Enable it under King Addons → Dashboard if it is off, then search for “Content Toggle” in the Elementor panel. Inspector labels from this widget’s PHP include “Primary Label”, “Secondary Label”, “Default State”, “Alignment”.

How do I add Content Toggle in Elementor?

Install King Addons and Elementor, edit a page, search the panel for “Content Toggle”, drag it onto the canvas, then set Content and Style.

Do I need Elementor Pro?

No. King Addons runs on free Elementor. Some King Addons options (for example template-in-accordion, extra popup conditions, parts of the template catalog) need King Addons Pro — not Elementor Pro.

Related content widgets

Get King Addons

One free plugin. 80+ Elementor widgets, 650+ templates, and 4,000+ sections. Search for Content Toggle after you activate it.

Get King Addons