The [epd_button]
shortcode enables you to output a button for a specific demo template anywhere on your site. Once a user clicks on the button, they are directed to the registration form where they can sign up for the demo they have selected.
Accepted Arguments
The [epd_button]
shortcode accepts the following arguments, all of which are optional;
demo_id
The post ID of the demo for which the button is being displayed.
Default value: Current post ID. If the current post is not a demo template, “No demo found” will be displayedid
The ID to assign to the button input.
Default value: epdp-launch-democlass
The CSS class to assign to the button input.
Default value: nonetext
The text to be displayed on the button input.
Default value: Defined within the Button Text setting option or within the demo template itself
Example Usage
- Output a button for Demo ID 123:
[epd_button demo_id="123"]
- Output a demo button for demo_id 123 with custom text and CSS styling:
[epd_button demo_id="123" text="Launch this Demo" class="custom_class"]