Button
Button adds new triggers to lets your users to complete automations through button clicks!
Automations samples
Discover thousands of ways to connect our Button add-on with other WordPress plugins
Watch a demo
Triggers and actions
All triggers and actions included on this add-on
Triggers
- PROUser clicks on a button
Actions
No actions
Frequently asked questions
All new triggers and actions are under the AutomatorWP integration.
[automatorwp_button] shortcode has the attribute “onclick”. On the onclick attribute you can use any Javascript code you want.
By setting the “onclick” attribute to “location.href='{INSERT_URL_HERE}’;” you can perform a redirect to any URL you want.
Example to redirect to automatorwp.com:
[automatorwp label="AutomatorWP website" onclick="location.href='https://automatorwp.com/';"]
Example to redirect to automatorwp.com/add-ons:
[automatorwp_button label="AutomatorWP add-ons" onclick="location.href='https://automatorwp.com/add-ons/';"]
Yes, contact to your theme author to meet the CSS classes that your theme uses and add them to the “class” attribute.
[automatorwp_button] shortcode supports:
- trigger – The trigger identifier. Leave the same value as provided by the trigger.
- label – The button label text. By default: “Click me!”
- id – The button id attribute.
- class – The button class attribute.
- onclick – The button onclick attribute.
Yes! Button add-on is looking for elements with the class
automatorwp-button
and with the attribute data-trigger="{TRIGGER_ID}"
, you can make it work with a custom element using the following code:
<div data-trigger="{TRIGGER_ID} id="{optional-id}" class="automatorwp-button {optional-class} {optional-class-2}">Click Here!</div>