# Creating callouts

> Callouts set important information apart from the surrounding text. Add them straight from the Zendesk article editor toolbar, and our themes style them to match the rest of your help center.

Source: https://www.zenplates.co/documentation/overview/creating-callouts (Overview › Using the article editor)

Callouts draw readers' attention to tips, warnings and other important information. The Zendesk article editor now includes [native callouts](https://support.zendesk.com/hc/en-us/articles/11042727986330-Using-callouts-to-highlight-content-in-the-article-editor) that you can add and edit straight from the toolbar, and our themes style them to match the rest of your help center. We recommend using them for all new content.

The class-based callouts used in earlier versions of our themes are still supported, so existing articles don't need to change. You'll find their instructions in the **Legacy elements** tab.

Native article components are supported in version 4.0.0 or later of our themes. If you're using an earlier version, use the legacy elements instead.

**Article components**

## Adding a callout

1. Create a new article or edit an existing one in your help center or Knowledge admin, and place your cursor where the callout should appear.

2. Click the **Article components** button in the editor toolbar and select **Callout**. The callout is added as an **Info** callout.

3. Type your message. Callouts can contain text, [blockquotes](https://www.zenplates.co/documentation/overview/creating-blockquotes), images, videos, tables and horizontal lines.

4. To change the style, click the **Callout type** field and select **Info**, **Warning**, **Error** or **Tip**.

5. Click **Save**.

To move a callout, hover over it and drag the handle. To remove one, click the handle to select the callout and press **Delete**.

## Callout types

Each type has its own icon and color:

```html
<div class="wysiwyg-callout wysiwyg-callout-info" role="note">
  <span class="wysiwyg-callout-icon" aria-hidden="true"></span>
  <p>Info callouts highlight helpful background information.</p>
</div>
<div class="wysiwyg-callout wysiwyg-callout-warning" role="note">
  <span class="wysiwyg-callout-icon" aria-hidden="true"></span>
  <p>Warning callouts draw attention to steps that need care.</p>
</div>
<div class="wysiwyg-callout wysiwyg-callout-error" role="note">
  <span class="wysiwyg-callout-icon" aria-hidden="true"></span>
  <p>Error callouts flag actions that can't be undone or will cause problems.</p>
</div>
<div class="wysiwyg-callout wysiwyg-callout-tip" role="note">
  <span class="wysiwyg-callout-icon" aria-hidden="true"></span>
  <p>Tip callouts suggest shortcuts and best practices.</p>
</div>
```

The editor creates this markup for you, so you don't need to use the editor's **HTML** (source code) view. Use callouts sparingly: too many make each one less noticeable.

## Styling callouts

The callout colors come from your theme's info, warning, error and tip colors, and the padding, margin and corner radius are shared by all four types. You can change all of these in the **Callouts** section of the visual builder's [Formatting elements](https://www.zenplates.co/documentation/visual-builder/editing-formatting-elements) panel.

For more control, you can override Zendesk's callout CSS variables in your theme's stylesheet, scoped to the article content so they take precedence over the theme defaults. For example:

```css
/* Use a stronger background for warning callouts */
.content .wysiwyg-callout-warning {
  --zd-wysiwyg-callout-warning-bg: #fff1c2;
}

/* Use larger icons in all callouts */
.content .wysiwyg-callout {
  --zd-wysiwyg-callout-icon-size: 1.25em;
}
```

**Legacy elements**

## Notes

Notes can be used to emphasize important information within your article content. To apply the style, add a class name of `.note` to an element (typically a `<p>` tag) using the [HTML](https://support.zendesk.com/hc/en-us/articles/4408839186586-Help-center-editor-toolbar-reference) (source code) view in the Zendesk article editor:

```html
<p class="note">
  This is an example of a standard note available in all themes.
  You can apply this style to any content by simply applying the <code>.note</code> class name to a 
  paragraph or container element.
</p>
```

## Warnings

Warning styles can help draw readers' attention to critical steps in a process. To apply the style, add a class name of `.warning` to an element:

```html
<p class="warning">
  This is an example of a warning section available in all themes.
  You can apply this style to any content by simply applying the <code>.warning</code> class name to a 
  paragraph or container element.
</p>
```

## Other callout classes

Version 4.0.0 of our themes adds `.info` (the same as `.note`), `.error` and `.tip` classes, which match the native callout types. To give a legacy callout a colored title, add a heading with the matching `-title` class, such as `.warning-title`:

```html
<div class="tip">
  <h4 class="tip-title">Tip</h4>
  <p>You can apply this style to any container element.</p>
</div>
```

The default styles and titles can be customized using theme settings or the visual builder. For more significant changes, edit the typography styles in your theme's [Sass source files](https://www.zenplates.co/documentation/customization/using-sass-source-files).
