Shortcodes
Call to Action Shortcode
Written by
oxypteros
Latest Episode: The Last Donut
This week, we unravel the baffling clues and chilling timeline surrounding the disappearance of the last donut.
What secrets remain buried? Learn more in our latest podcast.
Listen NowWhat secrets remain buried? Learn more in our latest podcast.
Code
{{< cta
TITLE="Latest Episode: The Last Donut"
BTN-TEXT="Listen Now"
BTN-LINK="/podcast/the-last-donut/"
BTN-LABEL="Listen to the full story now"
>}}
This week, we unravel the *baffling clues* and *chilling timeline* surrounding the disappearance of the **last donut**. 
What secrets remain buried? Learn more in our latest ***podcast***.
{{< /cta >}}
Overview
A simple text-based Call To Action shortcode with title, Markdown styled text content and a button styled link.
Usage
- Use this shortcode on the homepage and/or section pages (i.e. _index.md).
- This shortcode requires both opening and closing tags.
Parameters Reference
- TITLE
- TITLE="Example title"— (string, optional)
- H2 heading.
- BTN-TEXT
- BTN-TEXT="Link text"— (string, optional)
- Text for the button-styled link.
- BTN-LINK
- BTN-LINK="/link/to/path/"— (string, optional)
- hrefattribute for button-styled link. Requires- BTN-TEXTto be set.
- BTN-LABEL
- BTN-LABEL="Example label"— (string, optional)
- aria-labelattribute for button-styled link.
- Inner Content
- The main body of text. Supports Markdown formatting.
Error Codes
- liva-sc-170
- Unrecognized parameter detected.
- liva-sc-172
- Incomplete link/text pair.