Features
The Feature shortcode can be used to alert users to sensitive steps, safety warnings, or helpful tips. Features feature an icon, a title, and some brief content.Take a look at Wes’ How to Make a Keychain w/ the Glowforge article for a great example of Features in practice.
For help adding icons, check out the Icons article.
The Feature above is coded as follows:
[lore_feature title="Did you know?" icon="fa fa-question-circle"] This is a Feature shortcode. You can use it to alert users to helpful information! [/lore_feature]
Alert Messages
The Alert Message shortcode can be used to alert users to side notes and reminders. In some instances, either a Feature or an Alert Message could serve the same function. It is up to you to determine which display method is most effective for the information you’re trying to communicate.The Alert Message above is coded as follows:
[lore_alert_message type="info"] Note: An Alert Message is another helpful shortcode to alert users to side notes and other information! [/lore_alert_message]
Table of Contents
At the top of this article you’ll see this article’s Table of Contents. ToC’s are automatically generated for you and don’t require shortcode, but do require a little bit of editing using the Text Editor view tab. For each heading, provide an ID tag with a reference name. This name won’t be displayed, but it’ll show in the web address if someone wanted to link to that particular section of the page. Note that heading IDs cannot have spaces or special characters (e.g. !, @, #, $, %, etc).
The headings on this page are coded as follows (visible under the Text view of the editor window). The id="referenceName"
is what triggers the creation of the Table of Contents.
<h2 id="features">Features</h2> <h2 id="alertMessages">Alert Messages</h2> <h2 id="ToC">Table of Contents</h2>
Comments