Triggers
Shortcodes
Force a tour onto a page or render a Start tour button.
[lc_product_tour]
Ensures tour assets load for the given ID. Renders a hidden anchor the loader can read.
| Attribute | Default | Notes |
|---|---|---|
id | required | Tour post ID |
start | manual | Passed through as data-lcpt-start mode hint |
[lc_product_tour id="12"]
[lc_product_tour id="12" start="manual"][lc_product_tour_button]
Renders a button that starts the tour on click (data-lcpt-start="{id}").
| Attribute | Default | Notes |
|---|---|---|
id | required | Tour post ID |
class | lcpt-start-button | Extra CSS classes |
label | Start tour | Button text if shortcode content is empty |
[lc_product_tour_button id="12"]
[lc_product_tour_button id="12" label="Take the tour"]
[lc_product_tour_button id="12"]Begin walkthrough[/lc_product_tour_button]Both shortcodes force the tour onto the current page so targeting alone is not required.