Chap comes with a separate plugin that includes shortcodes. The plugin will function without Chap theme as well, so if you decide to part ways with the theme you don’t necessarily have to rewrite all your content.
How to use the shortcodesEvery shortcode has their arguments documented along with examples. You can also use the “Shortcode” button above the editor to insert shortcodes without having to remember them.
ArgumentsHere is an example of arguments for a shortcode:
All arguments are supposed to be included in the shortcode in the standard format:
However, any values inserted without the argument name will be counted as HTML classes for that shortcode:
[button primary blue class3 argument="value"]Button[/button]
Universal argumentsAll shortcodes can accept arguments with the names of some HTML attributes:
[button my_class id="my_button"]Button[/button]
It’s also possible to add inline styles to shortcodes: