Skip to content
King Addons

BUILD WITH KING ADDONS

How to Open an Elementor Popup from a Button

Use the Pro Custom Trigger in King Addons Popup Builder and point its Element Selector to the CSS class or ID on your button.

Use the Pro Custom Trigger in King Addons Popup Builder and point its Element Selector to the CSS class or ID on your button.

Before you start

Elementor, King Addons Pro and a popup template. The Free trigger is On Page Load; button-click/CSS-selector triggers require Pro.

King Addons popup builder interface.
King Addons popup builder interface.

Set it up in WordPress

  1. Create the popup layout

    Open Popup Builder and create a popup. Add a clear message and a close control, then review the layout at a phone width.

  2. Give the button a unique selector

    Assign a CSS class such as open-project-offer to the Elementor button. A class is written without the leading dot in the element’s CSS Classes field.

  3. Choose Custom Trigger

    In the popup settings, choose the Pro Custom Trigger option under Open Popup Logic. Set Element Selector to .open-project-offer, including the dot.

  4. Set where the popup can run

    Check the popup’s display conditions so it is available on the page containing the button. A trigger cannot open a popup that is excluded from that page.

  5. Test opening and closing

    Preview the public page and click the button. Test the close control, keyboard interaction and a second click after closing. Check that another button does not accidentally match the selector.

Check the result

Test the published page with the active Pro license and confirm that the popup closes as expected. A sample popup on a marketing page is not evidence that the Free plugin supports this trigger.

Common questions

Is a button trigger included in Free?

No. Custom Trigger for Button Click/CSS Selector is marked Pro.

Should the selector contain a dot?

Use .class-name for a class and #element-id for an ID in Element Selector.

THE COMPLETE ELEMENTOR TOOLKIT

Your idea. The tools to build it.

650+ premium templates. 4,000+ sections. One complete Pro toolkit.

Explore Pro Lifetime — $89One payment · Unlimited websites