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.
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
- Install King Addons. Install Elementor and King Addons. Get King Addons from WordPress.org.
- Edit with Elementor. Open a page and click Edit with Elementor.
- Insert the widget. Search the panel for “Announcement / Promo Bar”. Typing “king” lists every King Addons widget.
- 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
- An Elementor page that needs Announcement / Promo Bar.
- A layout in the posts, cards, lists, FAQs, and editorial layouts group.
- Search the panel for “Announcement / Promo Bar” after King Addons is active.
Inspector controls from this widget’s PHP
| Control | What the code does |
|---|---|
| Content — Badge Text | Printed in the widget HTML from render(). |
| Content — Title | Printed in the widget HTML from render(). |
| Content — Description | Printed in the widget HTML from render(). |
| Content — Button Text | Printed in the widget HTML from render(). |
| Content — Button Link | Elementor URL control (href, new tab, nofollow) applied to a front-end link. |
| Content — Show Close Button | Switcher inspector control (`kng_show_close`). |
| Layout — Position | The chosen value is read in render() and applied on the front end. Options: Top; Bottom. |
| Layout — Sticky on Scroll | Switcher inspector control (`kng_sticky`). |
| Layout — Padding | Writes CSS `padding` onto the widget’s front-end markup. |
| Styles — Background | Writes CSS `background-color` onto the widget’s front-end markup. |
| Styles — Border | Elementor border group: type, width, color, and radius when the group includes it. Selector: `{{WRAPPER}} .king-addons-promo-bar`. |
| Styles — Box Shadow | Elementor box-shadow group for the selector. Selector: `{{WRAPPER}} .king-addons-promo-bar`. |
| Styles — Typography | Elementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .king-addons-promo-bar__content`. |
| Styles — Text Color | Writes 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 Color | Writes CSS `color` onto the widget’s front-end markup. |
| Styles — Badge Background | Writes 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 Color | Writes CSS `color` onto the widget’s front-end markup. |
| Styles — Button Background | Writes CSS `background-color` onto the widget’s front-end markup. |
| Styles — Button Radius | Writes 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
Comparison Matrix Cards
Comparison Matrix Cards is an Elementor widget in King Addons. Enable it under King Addons → Dashboard if it is off, then search for “Comparison Matrix Cards” in the Elementor panel.
Content Toggle
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.
Cookie Preferences Button
Cookie Preferences Button is an Elementor widget in King Addons. Enable it under King Addons → Dashboard if it is off, then search for “Cookie Preferences Button” in the Elementor panel.
Custom Post Types Grid
Custom Post Types Grid is an Elementor widget in King Addons. Enable it under King Addons → Dashboard if it is off, then search for “Custom Post Types Grid” in the Elementor panel.
Custom Post Types Slider
Custom Post Types Slider is an Elementor widget in King Addons. Enable it under King Addons → Dashboard if it is off, then search for “Custom Post Types Slider” in the Elementor panel.
Event Calendar
Event Calendar is an Elementor widget in King Addons. Enable it under King Addons → Dashboard if it is off, then search for “Event Calendar” in the Elementor panel.
Get King Addons
One free plugin. 80+ Elementor widgets, 650+ templates, and 4,000+ sections. Search for Announcement / Promo Bar after you activate it.