Content · Elementor

Announcement / Promo Bar widget for Elementor

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

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

Announcement / Promo Bar Widget (Free).

render() writes HTML data attributes: data-close-persist, data-conditions, data-position, data-sticky.

Visitor state is stored in localStorage, not in post meta.

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 “Announcement / Promo Bar”. Typing “king” lists every King Addons widget.
  4. Set inspector controls from this widget’s PHP. Configure “Badge Text”, “Title”, “Description”, “Button Text”. 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 Announcement / Promo Bar.

Inspector controls from this widget’s PHP

ControlWhat the code does
Content — Badge TextPrinted in the widget HTML from render().
Content — TitlePrinted in the widget HTML from render().
Content — DescriptionPrinted in the widget HTML from render().
Content — Button TextPrinted in the widget HTML from render().
Content — Button LinkElementor URL control (href, new tab, nofollow) applied to a front-end link.
Content — Show Close ButtonSwitcher inspector control (`kng_show_close`).
Layout — PositionThe chosen value is read in render() and applied on the front end. Options: Top; Bottom.
Layout — Sticky on ScrollSwitcher inspector control (`kng_sticky`).
Layout — PaddingWrites CSS `padding` onto the widget’s front-end markup.
Styles — BackgroundWrites CSS `background-color` onto the widget’s front-end markup.
Styles — BorderElementor border group: type, width, color, and radius when the group includes it. Selector: `{{WRAPPER}} .king-addons-promo-bar`.
Styles — Box ShadowElementor box-shadow group for the selector. Selector: `{{WRAPPER}} .king-addons-promo-bar`.
Styles — TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .king-addons-promo-bar__content`.
Styles — Text ColorWrites CSS `color` onto the widget’s front-end markup.
Styles — Typography (Kng Badge Typography)Elementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .king-addons-promo-bar__badge`.
Styles — Badge Text ColorWrites CSS `color` onto the widget’s front-end markup.
Styles — Badge BackgroundWrites CSS `background-color` onto the widget’s front-end markup.
Styles — Typography (Kng Button Typography)Elementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .king-addons-promo-bar__button`.
Styles — Button Text ColorWrites CSS `color` onto the widget’s front-end markup.
Styles — Button BackgroundWrites CSS `background-color` onto the widget’s front-end markup.
Styles — Button RadiusWrites CSS `border-radius` onto the widget’s front-end markup. (min 0, max 40).

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 Announcement / Promo Bar 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 Announcement / Promo Bar in Elementor?

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

Get King Addons