Content · Elementor

Unfold widget for Elementor

Unfold is an Elementor widget in King Addons. Enable it under King Addons → Dashboard if it is off, then search for “Unfold” 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

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

render() writes HTML data attributes: data-animate-type, data-button-position, data-fade-height, data-fade-only-folded, data-fold-duration, data-fold-easing, data-fold-height-desktop, data-fold-height-mobile.

Some inspector controls are marked Pro in PHP (eicon-pro-icon / king-addons-pro-control). Those need King Addons Pro, not Elementor Pro.

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 “Unfold”. Typing “king” lists every King Addons widget.
  4. Set inspector controls from this widget’s PHP. Configure “Content Source (Pro)”, “Title Enable”, “Title”, “Title HTML Tag”. 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 Unfold.

Inspector controls from this widget’s PHP

ControlWhat the code does
Content — Content Source (Pro)The chosen value is read in render() and applied on the front end. Options: Editor; Elementor Template; Elementor Template.
Content — Title EnableSwitcher inspector control (`kng_title_enable`).
Content — TitleSaved on the widget and consumed in render().
Content — Title HTML TagThe chosen value is read in render() and applied on the front end. Options: H1; H2; H3; H4; H5; H6; DIV.
ContentPrinted in the widget HTML from render().
Content — Kng Template Id (Pro)The chosen value is read in render() and applied on the front end.
Content — AlignmentWrites CSS `text-align` onto the widget’s front-end markup. Options: Left; Center; Right; Justify.
Button — Button EnableSwitcher inspector control (`kng_button_enable`).
Button — Unfold TextWritten to the `data-unfold-text` HTML attribute in render().
Button — Fold TextWritten to the `data-fold-text` HTML attribute in render().
Button — Icon EnableSwitcher inspector control (`kng_icon_enable`).
Button — Unfold IconIcon rendered with Elementor Icons_Manager in this widget’s HTML.
Button — Fold IconIcon rendered with Elementor Icons_Manager in this widget’s HTML.
Button — Icon PositionWritten to the `data-icon-position` HTML attribute in render(). Options: Before; After.
Button — Button SizeThe chosen value is read in render() and applied on the front end. Options: XS; SM; MD; LG; Block.
Button — Kng Button Position (Pro)The chosen value is read in render() and applied on the front end. Options: Inside; Outside.
Button — Button AlignmentWrites CSS `justify-content` onto the widget’s front-end markup. Options: Left; Center; Right.
Fade Effect — Fade EnableSwitcher inspector control (`kng_fade_enable`).
Fade Effect — Kng Fade Height (Pro)Spacing/size control (min 0, max 400).
Fade Effect — Fade Only When FoldedSwitcher inspector control (`kng_fade_only_folded`).
Advanced Settings — Initial StateThe chosen value is read in render() and applied on the front end. Options: Folded; Unfolded.
Advanced Settings — Fold Height UnitThe chosen value is read in render() and applied on the front end. Options: Percent; PX.
Advanced Settings — Fold HeightSpacing/size control (min 10, max 100).
Advanced Settings — Kng Fold Height Px (Pro)Spacing/size control (min 50, max 2000).
Advanced Settings — Animation DurationThe chosen value is read in render() and applied on the front end. Options: Fast; Normal; Slow; Custom.
Advanced Settings — Custom Duration (s)Numeric value used in this widget’s render/JS (default 0.5, min 0.1).
Advanced Settings — EasingThe chosen value is read in render() and applied on the front end. Options: Linear; Ease; Ease In; Ease Out; Ease In Out.
Advanced Settings — Kng Fold Duration Mode (Pro)The chosen value is read in render() and applied on the front end. Options: Use Shared; Fast; Normal; Slow; Custom.
Advanced Settings — Fold Custom (s)Numeric value used in this widget’s render/JS (default 0.5, min 0.1).
Advanced Settings — Kng Fold Easing (Pro)The chosen value is read in render() and applied on the front end. Options: Use Shared; Linear; Ease; Ease In; Ease Out; Ease In Out.
Advanced Settings — Kng Unfold Duration Mode (Pro)The chosen value is read in render() and applied on the front end. Options: Use Shared; Fast; Normal; Slow; Custom.
Advanced Settings — Unfold Custom (s)Numeric value used in this widget’s render/JS (default 0.5, min 0.1).
Advanced Settings — Kng Unfold Easing (Pro)The chosen value is read in render() and applied on the front end. Options: Use Shared; Linear; Ease; Ease In; Ease Out; Ease In Out.
Advanced Settings — Kng Animate Height Type (Pro)The chosen value is read in render() and applied on the front end. Options: Auto to fixed; Max height.
Advanced Settings — Kng Scroll After Unfold (Pro)Switcher inspector control (`kng_scroll_after_unfold`).
Advanced Settings — Scroll OffsetSpacing/size control (min 0, max 400).
Box — BackgroundElementor background group: classic color/image or gradient on the selector. Selector: `{{WRAPPER}} .king-addons-unfold__box`.
Box — BorderElementor border group: type, width, color, and radius when the group includes it. Selector: `{{WRAPPER}} .king-addons-unfold__box`.
Box — Border RadiusWrites CSS `border-radius` onto the widget’s front-end markup.
Box — Box ShadowElementor box-shadow group for the selector. Selector: `{{WRAPPER}} .king-addons-unfold__box`.
Box — PaddingWrites CSS `padding` onto the widget’s front-end markup.
Box — MarginWrites CSS `margin` onto the widget’s front-end markup.
Title — TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .king-addons-unfold__title`.
Title — Text ColorWrites CSS `color` onto the widget’s front-end markup.
Title — Margin BottomWrites CSS `margin-bottom` onto the widget’s front-end markup. (min 0, max 200).
Content — TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .king-addons-unfold__content`.
Content — Text ColorWrites CSS `color` onto the widget’s front-end markup.
Content — Link ColorWrites CSS `color` onto the widget’s front-end markup.
Content — Link Hover ColorWrites CSS (a, color) onto the widget’s front-end markup.
Content — Paragraph SpacingWrites CSS (p, margin-bottom) onto the widget’s front-end markup. (min 0, max 50).
Button — TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .king-addons-unfold__button`.
Button (Normal) — Text ColorWrites CSS `color` onto the widget’s front-end markup.
Button (Normal) — Background ColorWrites CSS `background-color` onto the widget’s front-end markup.
Button (Normal) — BorderElementor border group: type, width, color, and radius when the group includes it. Selector: `{{WRAPPER}} .king-addons-unfold__button`.
Button (Normal) — Border RadiusWrites CSS `border-radius` onto the widget’s front-end markup.
Button (Normal) — Box ShadowElementor box-shadow group for the selector. Selector: `{{WRAPPER}} .king-addons-unfold__button`.
Button (Normal) — PaddingWrites CSS `padding` onto the widget’s front-end markup.
Button (Normal) — Icon SpacingWrites CSS (margin-right, margin-left) onto the widget’s front-end markup. (min 0, max 50).
Button (Normal) — Hover AnimationThe chosen value is read in render() and applied on the front end. Options: None; Lift; Scale.
Button (Hover) — Text ColorWrites CSS (button, color) onto the widget’s front-end markup.
Button (Hover) — Background ColorWrites CSS (button, background-color) onto the widget’s front-end markup.
Button (Hover) — BorderElementor border group: type, width, color, and radius when the group includes it. Selector: `{{WRAPPER}} .king-addons-unfold__button:hover`.
Button (Hover) — Box ShadowElementor box-shadow group for the selector. Selector: `{{WRAPPER}} .king-addons-unfold__button:hover`.
Fade Overlay — Fade ColorColor written to this widget’s CSS selector.

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

Which Unfold options need King Addons Pro?

Controls marked with the Pro icon in this widget’s PHP. King Addons Pro is a separate license from Elementor Pro.

How do I add Unfold in Elementor?

Install King Addons and Elementor, edit a page, search the panel for “Unfold”, 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 Unfold after you activate it.

Get King Addons