Shortcodes
Last updated: October 5, 2023
Icon Shortcode
[icon icon="dolphin"]
Options
icon="icon_name"
Button Shortcode
[button link="espn.com" icon="calendar" palette_color="red" is_target_blank=true label="Book Online" large=true ]
Options
link="http://www.link.com"(generate lightframe links from the embed generator)is_target_blank=true(default false)label="Book Now"sub_label="Save 50% Booking Online"- **
icon="calendar" color="#ff0000"- ***
palette_color="red" halign="left"(default center)reduce_prominence=true(default false)large=true(default false)full_width=true(default false)emphasize_subheading=true(default false)mixpanel_property='custom-name-here'
**Icons
- anchor, calendar, camera, checkmark, check-bubble, clock, dollar, download, gift, heart, hour-glass, key-hole, location, map-marker, open-book, phone, tag, tags, user, users, ticket
***Palette Colors
- You have access to
'primary_color','secondary_color','banner_button_bg_color','white','black'and any palette colors you add under Look & Feel (use lowercase with underline ie'dark_red')
Search Bar Shortcode
[searchbar]
Label Shortcodes
Label shortcodes can pull hardcoded and translated labels. This enables you to use a shortcode to pull in the correct translation for each label depending on the language of the page it is used on. This is especially useful for templates which may need to be used across activities or pages in multiple languages.
[learn-more-label]
[book-now-label]
[from-price-subtitle]
[activities-label]
[quick-details-label]
[blog-title]
Activity Shortcodes
Activity Shortcodes pull specific data that is defined on the activity post type. If used on an activity post, they must only be added to blocks or rows in the Layout or Sidebar tab, and a shortcode without an id attribute defined will self reference the activity that it is added to.
To pull data with a shortcode on a page post, or a different activity, add an id attribute with the id of the activity post you want to reference. To find the id of an activity, visit the activity in admin and find in the url post=xxxx&. The ‘x’es will be replace with a number, and that number is the activity post id. An example of how an activity shortcode would look when referencing a different post that the one it is used on is as follows: [activity-title id="1126"].
The following are the available activity shortcodes and all can have an id attribute added: