Manually triggering a popup or other CTA widget
As well as automatic triggers (exit intent, scrolling X%, on page load, etc), you can also have your popups or other widgets appear when a visitor to your site clicks a certain button or link.
Step 1: find the ID of the widget you want to trigger
Click to view or edit the widget in RightMessage, and look in your browser's address bar. The ID is the part that starts with
wdg_, followed by eight letters or numbers:
Copy that ID - you'll need it for step 2.
Step 2: make the trigger link/button
On the link or button element on your site that you'd like to use to trigger the widget, add a
wdg_xxxxxxxxis the ID you found in step 1.
So, you might end up with a button that looks like:
<a href="#" data-rm-show="wdg_12345678">Click me!</a>
<button data-rm-show="wdg_12345678">Click me!</button>
You can style the button exactly how you normally would—it's the addition of the
data-rm-show="..."that makes the widget trigger on click.
If you're using WordPress and you've installed our WordPress plugin, you can instead use this shortcode to create a link that triggers your widget:
[rm_trigger widget="wdg_12345678"]Click me![/rm_trigger]