Content · Gutenberg
Callout block for WordPress
Highlighted panel for tips, warnings or success messages with icon, title and dismissible option.
Get Blockenberg
Free Gutenberg block in Blockenberg. The inspector controls and front-end behavior on this page come from this block’s source, not a shared stub.
What it actually does
Highlighted panel for tips, warnings or success messages with icon, title and dismissible option.
Inspector panels on this block: Type & Style, Custom Colors. Those titles come from index.js, not from a shared template.
Behavior controls: “Callout Type” options: Info, Success, Warning, Danger, Custom; “Border Style” options: Left accent, Top ribbon, All sides, No border.
Where to find it
Gutenberg inserter → Content → search “Callout” (block name `blockenberg/callout` in block.json). Style it in the sidebar after insert.
How to use Callout block for WordPress
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Callout”, insert it. Category: Content.
- Configure inspector controls that exist on this block. Open Type & Style. Set “Callout Type”, “Border Style”, “Show Icon”, “Dismissible”.
- Check the published page. The view script reads HTML data attributes: data-dismissible. The block editor preview may not run the same view script.
Inspector controls from this block’s code
| Control | What the code does |
|---|---|
| Callout Type | Select control; the chosen value is saved on the block. Options: Info; Success; Warning; Danger; Custom. block.json default: info. Saved as `calloutType`. |
| Border Style | Select control; the chosen value is saved on the block. Options: Left accent; Top ribbon; All sides; No border. block.json default: left. Saved as `borderStyle`. |
| Show Icon | On/off toggle in the inspector. On by default. Saved as `showIcon`. |
| Dismissible | On/off toggle in the inspector. Off by default. Saved as `dismissible`. |
| Vertical Padding | Numeric range control in the inspector. Range 8–48. block.json default: 16. Saved as `paddingV`. |
| Horizontal Padding | Numeric range control in the inspector. Range 8–64. block.json default: 20. Saved as `paddingH`. |
| Border Radius | Numeric range control in the inspector. Range 0–24. block.json default: 6. Saved as `borderRadius`. |
| Colors — Background | Color control in the inspector. Saved as `bgColor`. |
| Border / Accent | Color control in the inspector. Saved as `borderColor`. |
| Colors — Text | Color control in the inspector. Saved as `textColor`. |
What the front-end script actually does
- The view script reads HTML data attributes: data-dismissible.
When this is the right block
- Highlighted panel for tips, warnings or success messages with icon, title and dismissible option — that is the job of Callout, not a generic content block.
- Use it when you need the editor control labeled “Callout Type”, which exists on this block’s inspector.
- It matches pages about callout, tip, warning.
- Inserter grouping: articles, cards, lists, and long-form layouts.
Notes from the implementation
viewScript: this folder’s frontend.js is enqueued on the front end for this block.
FAQ
How do I add the Callout block in WordPress?
Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Callout”. It sits under Content. After insert, open Type & Style and set “Callout Type”, “Border Style”, “Show Icon”, “Dismissible”.
What makes Callout different from other Blockenberg blocks?
Highlighted panel for tips, warnings or success messages with icon, title and dismissible option. Inspector labels on this block include “Callout Type”, “Border Style”, “Show Icon”, “Dismissible”.
Is the Callout Gutenberg block free?
Yes. Callout ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.
Can I style Callout to match my theme?
Yes. Blockenberg’s shared typography and color panels apply here, plus any block-specific style controls listed on this page (panels: Type & Style, Custom Colors).
Related content blocks
Content Box
Styled content container with optional icon/emoji, badge label, title, rich body text, style variants (info/warning/success/tip/quote), border, background, and rounded corners.
Alert / Notice
Info, success, warning or error notice block with icon, title and body text. Pure CSS — zero JS.
Sticky Note
Colored post-it style note with optional rotation, shadow, curl corner and handwritten font.
Big Stat
Display a single large impactful statistic with prefix, suffix, label, and multiple visual styles.
Content Warning
Editorial content advisory or sensitivity notice, optionally collapsible.
Info Cards
Flexible feature/info card grid with emoji or image icons, title, description, optional CTA and accent colors. Multiple card styles.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Callout from the Gutenberg inserter.