How to create custom triggers
In just 3 steps, you can create custom buttons on your site that trigger a popup for the default Registration Rule or Monetization Plan. (The defaults are determined by the Audience to which a reader belongs.)
Step 1: Add an element to your page in WordPress.
Step 2: Edit the element as HTML.
Step 3: To have this element trigger a Registration Rule popup, add
"PicoRule" as a class. Otherwise, if you want it to trigger a popup for the default Monetization Plan, add
"PicoPlan" as a class.
Note: Triggers for Monetization plans won't work unless there is an existing monetization plan in place. To create one, you'll first need to Connect to Stripe.
<div class="wp-block-button PicoRule"><a class="wp-block-button__link">Log In</a></div>
- Custom Triggers can also be used to provide on-site Menu Shortcuts for quickly accessing account management options, and they can be used to integrate custom Signup Forms.
- You can customize your own payment landing page by setting even more advanced Custom Triggers for specific price points of a Monetization Plan. To find the Custom Trigger class for a particular subscription offer or donation suggestion, open the Popup tab of any Individual Subscription or Donation Monetization Plan.
- You can customize the look of the triggering element by adding a Signal to it. To ensure the best reader experience, style the element to look disabled by default and to only become enabled once a Signal data attribute, such as
data-pico-status, is attached to the element. Prior to Pico being fully loaded on the page, no Signal data attribute will attach to the element, and the Custom Trigger functionality will similarly be unavailable. This is especially important to consider for readers in low-bandwidth environments.