Content · Elementor
Cookie Preferences Button widget for Elementor
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.
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
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.
Cookie Preferences Button widget (Free).
render() writes HTML data attributes: data-ka-cookie-manage.
The widget script reads data attributes: data-ka-cookie-manage.
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 “Cookie Preferences Button”. Typing “king” lists every King Addons widget.
- Set inspector controls from this widget’s PHP. Configure “Button Label”, “Alignment”, “Typography”, “Text Color”. Style and Content tabs are listed on this page.
When to use it
- An Elementor page that needs Cookie Preferences Button.
- A layout in the posts, cards, lists, FAQs, and editorial layouts group.
- Search the panel for “Cookie Preferences Button” after King Addons is active.
Inspector controls from this widget’s PHP
| Control | What the code does |
|---|---|
| Content — Button Label | Printed in the widget HTML from render(). |
| Content — Alignment | Writes CSS `justify-content` onto the widget’s front-end markup. Options: Left; Center; Right. |
| Button — Typography | Elementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .king-addons-cookie-button__trigger`. |
| Button — Text Color | Writes CSS `color` onto the widget’s front-end markup. |
| Button — Background | Writes CSS `background-color` onto the widget’s front-end markup. |
| Button — Border Color | Writes CSS `border-color` onto the widget’s front-end markup. |
| Button — Border | Elementor border group: type, width, color, and radius when the group includes it. Selector: `{{WRAPPER}} .king-addons-cookie-button__trigger`. |
| Button — Box Shadow | Elementor box-shadow group for the selector. Selector: `{{WRAPPER}} .king-addons-cookie-button__trigger`. |
| Button — Border Radius | Writes CSS `border-radius` onto the widget’s front-end markup. (min 0, max 50). |
| Button — Padding | Writes CSS `padding` 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 Cookie Preferences Button actually change on the page?
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. Inspector labels from this widget’s PHP include “Button Label”, “Alignment”, “Typography”, “Text Color”.
How do I add Cookie Preferences Button in Elementor?
Install King Addons and Elementor, edit a page, search the panel for “Cookie Preferences Button”, 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
Announcement / Promo Bar
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.
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.
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 Cookie Preferences Button after you activate it.