How to make your Popup widget appear by click on certain element
Do you want your Popup widget to appear when a specific element on your website is clicked? No problem! We'll show you how to easily set that up. Let's get started!
- 1
- First, you need to locate a unique ID of the element that should trigger your Popup widget upon clicking on it. To do this, right-click on the page with this element and select Inspect:
- 2
-
By using the ↖ option available in the upper left corner of the console, inspect the element that should trigger your widget. Our example demonstrates that we're inspecting the Click here to get a discount! button:
Here is the unique ID of this element that we need to copy to move forward:
- 3
- Once you have copied the ID, go to the Settings tab in your widget's configurator → Triggers:
- 4
- Enable the On Click trigger and insert the ID you have just copied to HTML Element ID:
Well done. Now your Popup widget will appear upon clicking on that element!