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.

Get King Addons

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

  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 “Cookie Preferences Button”. Typing “king” lists every King Addons widget.
  4. 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

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

Inspector controls from this widget’s PHP

ControlWhat the code does
Content — Button LabelPrinted in the widget HTML from render().
Content — AlignmentWrites CSS `justify-content` onto the widget’s front-end markup. Options: Left; Center; Right.
Button — TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .king-addons-cookie-button__trigger`.
Button — Text ColorWrites CSS `color` onto the widget’s front-end markup.
Button — BackgroundWrites CSS `background-color` onto the widget’s front-end markup.
Button — Border ColorWrites CSS `border-color` onto the widget’s front-end markup.
Button — BorderElementor border group: type, width, color, and radius when the group includes it. Selector: `{{WRAPPER}} .king-addons-cookie-button__trigger`.
Button — Box ShadowElementor box-shadow group for the selector. Selector: `{{WRAPPER}} .king-addons-cookie-button__trigger`.
Button — Border RadiusWrites CSS `border-radius` onto the widget’s front-end markup. (min 0, max 50).
Button — PaddingWrites 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

Get King Addons

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

Get King Addons