Business · Gutenberg

Stats Section block for WordPress

A landing-page statistics section — large numbers with labels, icons, optional section heading, and multiple layout/style variants.

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 landing-page statistics section — large numbers with labels, icons, optional section heading, and multiple layout/style variants.

Inspector panels on this block: Stats, Section Header, Layout & Style. Those titles come from index.js, not from a shared template.

Behavior controls: “Text alignment” options: Left, Center, Right; “Layout” options: Row (horizontal), Grid, Centered column; “Card style” options: Plain (no background), Card (white bg + shadow), Bordered, Gradient number; “Text alignment (Text Align)” options: Left, Center, Right.

Stats Section has no render.php and no frontend.js. The saved Gutenberg HTML is what visitors see, plus Blockenberg layout/typography CSS.

Where to find it

Gutenberg inserter → Business → search “Stats Section” (block name `blockenberg/stats-section` in block.json). Style it in the sidebar after insert.

How to use Stats Section block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Stats Section”, insert it. Category: Business.
  3. Configure inspector controls that exist on this block. Open Stats. Set “Prefix (e.g. $)”, “Number / Value”, “Suffix (e.g. /5)”, “Label”.
  4. Publish. Save the page. Output is the saved block HTML; typography/colors follow Blockenberg shared panels.

Inspector controls from this block’s code

ControlWhat the code does
Prefix (e.g. $)Text field in the inspector.
Number / ValueText field in the inspector.
Suffix (e.g. /5)Text field in the inspector.
LabelText field in the inspector.
DescriptionText field in the inspector.
Show section headerOn/off toggle in the inspector. On by default. Saved as `showSectionHeader`.
Section Header — TitleText field in the inspector. block.json default: Trusted by thousands of teams. Saved as `sectionTitle`.
SubtitleText field in the inspector. block.json default: Real results from real customers — not just promises.. Saved as `sectionSubtitle`.
Text alignmentSelect control; the chosen value is saved on the block. Options: Left; Center; Right. block.json default: center. Saved as `headerAlign`.
LayoutSelect control; the chosen value is saved on the block. Options: Row (horizontal); Grid; Centered column. block.json default: row. Saved as `layout`.
Card styleSelect control; the chosen value is saved on the block. Options: Plain (no background); Card (white bg + shadow); Bordered; Gradient number. block.json default: plain. Saved as `cardStyle`.
ColumnsNumeric range control in the inspector. Range 1–6. block.json default: 4. Saved as `columns`.
Gap (px)Numeric range control in the inspector. Range 0–80. block.json default: 40. Saved as `gap`.
Text alignment (Text Align)Select control; the chosen value is saved on the block. Options: Left; Center; Right. block.json default: center. Saved as `textAlign`.
Show iconsOn/off toggle in the inspector. On by default. Saved as `showIcons`.
Show dividers between statsOn/off toggle in the inspector. On by default. Saved as `showDividers`.
Show descriptionsOn/off toggle in the inspector. On by default. Saved as `showDescription`.
Section padding top (px)Numeric range control in the inspector. Range 0–160. block.json default: 64. Saved as `paddingTop`.
Section padding bottom (px)Numeric range control in the inspector. Range 0–160. block.json default: 64. Saved as `paddingBottom`.
Card padding (px)Numeric range control in the inspector. Range 0–80. block.json default: 32. Saved as `cardPadding`.
Border radius (px)Numeric range control in the inspector. Range 0–40. block.json default: 16. Saved as `borderRadius`.
Icon size (px)Numeric range control in the inspector. Range 16–64. block.json default: 36. Saved as `iconSize`.
Number colorColor control in the inspector. block.json default: #6c3fb5. Saved as `numberColor`.
Label colorColor control in the inspector. block.json default: #1e293b. Saved as `labelColor`.
Description colorColor control in the inspector. block.json default: #64748b. Saved as `descColor`.
Icon colorColor control in the inspector. block.json default: #6c3fb5. Saved as `iconColor`.
Divider colorColor control in the inspector. block.json default: #e2e8f0. Saved as `dividerColor`.
Card backgroundColor control in the inspector. block.json default: #ffffff. Saved as `cardBg`.
Card borderColor control in the inspector. block.json default: #e2e8f0. Saved as `cardBorder`.
Section backgroundColor control in the inspector. Saved as `sectionBg`.
Title colorColor control in the inspector. block.json default: #0f172a. Saved as `titleColor`.
Subtitle colorColor control in the inspector. block.json default: #64748b. Saved as `subtitleColor`.
Gradient fromColor control in the inspector. block.json default: #6c3fb5. Saved as `gradientFrom`.
Gradient toColor control in the inspector. block.json default: #2563eb. Saved as `gradientTo`.

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 Stats Section block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Stats Section”. It sits under Business. After insert, open Stats and set “Prefix (e.g. $)”, “Number / Value”, “Suffix (e.g. /5)”, “Label”.

What makes Stats Section different from other Blockenberg blocks?

A landing-page statistics section — large numbers with labels, icons, optional section heading, and multiple layout/style variants. Inspector labels on this block include “Prefix (e.g. $)”, “Number / Value”, “Suffix (e.g. /5)”, “Label”.

Is the Stats Section Gutenberg block free?

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

Can I style Stats Section 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: Stats, Section Header, Layout & Style).

Related business blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Stats Section from the Gutenberg inserter.

Get Blockenberg