Content · Gutenberg
Number Box block for WordPress
Square or circle box with a large metric number, prefix, suffix and label.
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
Square or circle box with a large metric number, prefix, suffix and label.
Inspector panels on this block: Content. Those titles come from index.js, not from a shared template.
Behavior controls: “Shape” options: Square, Circle.
Number Box 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 → Content → search “Number Box” (block name `blockenberg/number-box` in block.json). Style it in the sidebar after insert.
How to use Number Box block for WordPress
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Number Box”, insert it. Category: Content.
- Configure inspector controls that exist on this block. Open Content. Set “Prefix”, “Suffix”, “Shape”, “Box Size (px)”.
- Publish. Save the page. Output is the saved block HTML; typography/colors follow Blockenberg shared panels.
Inspector controls from this block’s code
| Control | What the code does |
|---|---|
| Prefix | Text field in the inspector. Saved as `prefix`. |
| Suffix | Text field in the inspector. block.json default: %. Saved as `suffix`. |
| Shape | Select control; the chosen value is saved on the block. Options: Square; Circle. block.json default: square. Saved as `shape`. |
| Box Size (px) | Numeric range control in the inspector. Range 80–320. block.json default: 160. Saved as `boxSize`. |
| Border Radius (px) | Numeric range control in the inspector. Range 0–60. block.json default: 16. Saved as `borderRadius`. |
| Box Shadow | On/off toggle in the inspector. On by default. Saved as `shadow`. |
| Style — Border | On/off toggle in the inspector. Off by default. Saved as `border`. |
| Border Width (px) | Numeric range control in the inspector. Range 1–8. block.json default: 2. Saved as `borderWidth`. |
| Colors — Background | Color control in the inspector. block.json default: #6c3fb5. Saved as `bgColor`. |
| Number & Text | Color control in the inspector. block.json default: #ffffff. Saved as `textColor`. |
| Label (override) | Color control in the inspector. Saved as `labelColor`. |
| Colors — Border | Color control in the inspector. block.json default: #e0d7f8. Saved as `borderColor`. |
When this is the right block
- Square or circle box with a large metric number, prefix, suffix and label — that is the job of Number Box, not a generic content block.
- Use it when you need the editor control labeled “Prefix”, which exists on this block’s inspector.
- It matches pages about number, metric, stat.
- 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 Number Box block in WordPress?
Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Number Box”. It sits under Content. After insert, open Content and set “Prefix”, “Suffix”, “Shape”, “Box Size (px)”.
What makes Number Box different from other Blockenberg blocks?
Square or circle box with a large metric number, prefix, suffix and label. Inspector labels on this block include “Prefix”, “Suffix”, “Shape”, “Box Size (px)”.
Is the Number Box Gutenberg block free?
Yes. Number Box ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.
Can I style Number 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: Content).
Related content blocks
Big Stat
Display a single large impactful statistic with prefix, suffix, label, and multiple visual styles.
Icon Stats
Statistics displayed with large decorative icons, bold numbers, and descriptive labels.
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.
Icon Box
Single card with icon, title, text, and optional link button. Perfect for feature lists inside Row/Column.
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.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Number Box from the Gutenberg inserter.