Watch our Academy video πΉ on creating your first article for a step-by-step guide:
In this article:
Start adding callouts to your article
1. Add callouts in articles
Step 1. Create a new article or edit an existing one.
Step 2. In the Write tab of an article, hit enter for a new line and the media embedder bar appears. Click on the "Add callout" option.
Step 3. Add text in the callout, this can be styled by adding headers, quotes, lists and dividers. The style of the callout itself can also be changed, depending on the type (on the right):
Info (blue)
Warning (yellow)
Error (red)
Success (green)
Note (grey)
Step 4. After adding text in the callout, the text itself can still be formatted by applying bold, italic, underline, strikethrough, small, inline code or a link to the text.
π There you go!
2. Style callouts on the website
While the default styling of callouts is set, it's possible to add custom styling through the CSS files.
In the code, you can find the callouts with a <aside> element containing 2 classes, strchf-callout and strchf-callout-type where type is a variable, depending on the callout type being used.
The general strchf-callout class can be used to change the padding, the rounding of corners, the font, .. while the type-specific classes are ideal to change the background-color, text color etc.
HTML
<aside>
CSS
strchf-callout -> General class
strchf-callout-info (default bgcolor: #e6f0ff)
strchf-callout-warning (default bgcolor: #fffbea)
strchf-callout-error (default bgcolor: #ffecec)
strchf-callout-success (default bgcolor: #ebf9eb)
strchf-callout-note (default bgcolor: #efefef)
3. Limitations
Callouts are supported on most websites & destinations, but not everywhere.
The websites below are tested, it should work for other HTML-based websites.
Callouts will be displayed as plain text on Medium, Devto, SharePoint & Contentful as these channels don't support callouts.
Callouts might not work in email/newsletter tools. Yet, they do work for ambassador emails (not in Outlook). The callouts also appear with styling in the full RSS feed.