Content · Gutenberg

Content Box block for WordPress

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.

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.

Get Blockenberg

What it actually does

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.

Inspector panels on this block: Style Variant, Content, Border & Shape, Custom Colors. Those titles come from index.js, not from a shared template.

Behavior controls: “Variant” options: 🔵 Info, 🟡 Warning, 🟢 Success, 🟣 Tip, ⬜ Quote; “Icon Position” options: Left, Top; “Border Side” options: Left, Top, All sides, None.

Where to find it

Gutenberg inserter → Content → search “Content Box” (block name `blockenberg/content-box` in block.json). Style it in the sidebar after insert.

How to use Content Box block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Content Box”, insert it. Category: Content.
  3. Configure inspector controls that exist on this block. Open Style Variant. Set “Variant”, “Show Icon”, “Icon Position”, “Show Badge”.
  4. Check the published page. The view script reads HTML data attributes: data-opts. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
VariantSelect control; the chosen value is saved on the block. Options: 🔵 Info; 🟡 Warning; 🟢 Success; 🟣 Tip; ⬜ Quote; ⚙️ Custom. block.json default: info. Saved as `variant`.
Show IconOn/off toggle in the inspector. On by default. Saved as `showIcon`.
Icon PositionSelect control; the chosen value is saved on the block. Options: Left; Top. block.json default: left. Saved as `iconLayout`.
Show BadgeOn/off toggle in the inspector. On by default. Saved as `showBadge`.
Badge TextText field in the inspector. block.json default: Note. Saved as `badge`.
Show TitleOn/off toggle in the inspector. On by default. Saved as `showTitle`.
Border SideSelect control; the chosen value is saved on the block. Options: Left; Top; All sides; None. block.json default: left. Saved as `borderPosition`.
Border Width (px)Numeric range control in the inspector. Range 1–12. block.json default: 4. Saved as `borderWidth`.
Border Radius (px)Numeric range control in the inspector. Range 0–32. block.json default: 8. Saved as `borderRadius`.
Padding Top/Bottom (px)Numeric range control in the inspector. Range 8–64. block.json default: 20. Saved as `paddingV`.
Padding Left/Right (px)Numeric range control in the inspector. Range 8–64. block.json default: 24. Saved as `paddingH`.
Max Width (0 = full)Numeric range control in the inspector. Range 0–1200. block.json default: 0. Saved as `maxWidth`.
Icon Size (px)Numeric range control in the inspector. Range 14–60. block.json default: 28. Saved as `iconSize`.
Typography — TitleShared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoTitle`.
BodyShared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoBody`.
Box BackgroundColor control in the inspector. Saved as `bgColor`.
Border ColorColor control in the inspector. Saved as `borderColor`.
Title ColorColor control in the inspector. Saved as `titleColor`.
Body Text ColorColor control in the inspector. Saved as `textColor`.
Badge BackgroundColor control in the inspector. Saved as `badgeBg`.
Badge TextColor control in the inspector. Saved as `badgeColor`.
Icon ColorColor control in the inspector. Saved as `iconColor`.

What the front-end script actually does

When this is the right block

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 Content Box block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Content Box”. It sits under Content. After insert, open Style Variant and set “Variant”, “Show Icon”, “Icon Position”, “Show Badge”.

What makes Content Box different from other Blockenberg blocks?

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. Inspector labels on this block include “Variant”, “Show Icon”, “Icon Position”, “Show Badge”.

Is the Content Box Gutenberg block free?

Yes. Content Box ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style Content Box 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: Style Variant, Content, Border & Shape, Custom Colors).

Related content blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Content Box from the Gutenberg inserter.

Get Blockenberg