Content · Gutenberg
Chapter Intro block for WordPress
A decorative chapter opener with large chapter number, label, heading, and intro paragraph.
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
A decorative chapter opener with large chapter number, label, heading, and intro paragraph.
Inspector panels on this block: Layout & Style, Sizing. Those titles come from index.js, not from a shared template.
Behavior controls: “Layout” options: Centered, Left Aligned; “Number Style” options: Solid (filled color), Ghost (outline only); “Divider Style” options: Line, Dots, Gradient.
Where to find it
Gutenberg inserter → Content → search “Chapter Intro” (block name `blockenberg/chapter-intro` in block.json). Style it in the sidebar after insert.
How to use Chapter Intro block for WordPress
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Chapter Intro”, insert it. Category: Content.
- Configure inspector controls that exist on this block. Open Layout & Style. Set “Number Style”, “Show Chapter Label”, “Show Divider”, “Divider Style”.
- 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
| Control | What the code does |
|---|---|
| Layout | Select control; the chosen value is saved on the block. Options: Centered; Left Aligned. block.json default: centered. Saved as `layout`. |
| Number Style | Select control; the chosen value is saved on the block. Options: Solid (filled color); Ghost (outline only). block.json default: display. Saved as `numberStyle`. |
| Show Chapter Label | On/off toggle in the inspector. On by default. Saved as `showLabel`. |
| Show Divider | On/off toggle in the inspector. On by default. Saved as `showDivider`. |
| Divider Style | Select control; the chosen value is saved on the block. Options: Line; Dots; Gradient. block.json default: line. Saved as `dividerStyle`. |
| Max Width (px) | Numeric range control in the inspector. Range 400–1400. block.json default: 760. Saved as `maxWidth`. |
| Padding Top (px) | Numeric range control in the inspector. Range 0–200. block.json default: 80. Saved as `paddingTop`. |
| Padding Bottom (px) | Numeric range control in the inspector. Range 0–200. block.json default: 80. Saved as `paddingBottom`. |
| Number Size (px) | Numeric range control in the inspector. Range 48–400. block.json default: 160. Saved as `numberSize`. |
| Colors — Background | Color control in the inspector. block.json default: #ffffff. Saved as `bgColor`. |
| Chapter Number | Color control in the inspector. block.json default: #f0eeff. Saved as `numberColor`. |
| Chapter Label | Color control in the inspector. block.json default: #7c3aed. Saved as `labelColor`. |
| Heading | Color control in the inspector. block.json default: #111827. Saved as `headingColor`. |
| Intro Text | Color control in the inspector. block.json default: #4b5563. Saved as `textColor`. |
| Divider | Color control in the inspector. block.json default: #e5e7eb. Saved as `dividerColor`. |
| Accent (gradient divider) | Color control in the inspector. block.json default: #7c3aed. Saved as `accentColor`. |
What the front-end script actually does
- The view script reads HTML data attributes: data-opts.
When this is the right block
- A decorative chapter opener with large chapter number, label, heading, and intro paragraph — that is the job of Chapter Intro, not a generic content block.
- Use it when you need the editor control labeled “Number Style”, which exists on this block’s inspector.
- 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 Chapter Intro block in WordPress?
Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Chapter Intro”. It sits under Content. After insert, open Layout & Style and set “Number Style”, “Show Chapter Label”, “Show Divider”, “Divider Style”.
What makes Chapter Intro different from other Blockenberg blocks?
A decorative chapter opener with large chapter number, label, heading, and intro paragraph. Inspector labels on this block include “Number Style”, “Show Chapter Label”, “Show Divider”, “Divider Style”.
Is the Chapter Intro Gutenberg block free?
Yes. Chapter Intro ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.
Can I style Chapter Intro 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: Layout & Style, Sizing).
Related content blocks
Accordion
Collapsible accordion panels for FAQ, features, and more.
Accordion Table
A data table where each row expands on click to reveal rich detail content — specs, bullet points, sub-data, or notes. Perfect for pricing tiers, product specs, API docs, and comparison matrices.
Alert / Notice
Info, success, warning or error notice block with icon, title and body text. Pure CSS — zero JS.
Big Stat
Display a single large impactful statistic with prefix, suffix, label, and multiple visual styles.
Blockquote / Pull Quote
Stylish quote block with accent line or decorative marks, author name, role and photo.
Callout
Highlighted panel for tips, warnings or success messages with icon, title and dismissible option.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Chapter Intro from the Gutenberg inserter.