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.

Get Blockenberg

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

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Chapter Intro”, insert it. Category: Content.
  3. Configure inspector controls that exist on this block. Open Layout & Style. Set “Number Style”, “Show Chapter Label”, “Show Divider”, “Divider Style”.
  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
LayoutSelect control; the chosen value is saved on the block. Options: Centered; Left Aligned. block.json default: centered. Saved as `layout`.
Number StyleSelect 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 LabelOn/off toggle in the inspector. On by default. Saved as `showLabel`.
Show DividerOn/off toggle in the inspector. On by default. Saved as `showDivider`.
Divider StyleSelect 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 — BackgroundColor control in the inspector. block.json default: #ffffff. Saved as `bgColor`.
Chapter NumberColor control in the inspector. block.json default: #f0eeff. Saved as `numberColor`.
Chapter LabelColor control in the inspector. block.json default: #7c3aed. Saved as `labelColor`.
HeadingColor control in the inspector. block.json default: #111827. Saved as `headingColor`.
Intro TextColor control in the inspector. block.json default: #4b5563. Saved as `textColor`.
DividerColor 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

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 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

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Chapter Intro from the Gutenberg inserter.

Get Blockenberg