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.

Get Blockenberg

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

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Number Box”, insert it. Category: Content.
  3. Configure inspector controls that exist on this block. Open Content. Set “Prefix”, “Suffix”, “Shape”, “Box Size (px)”.
  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
PrefixText field in the inspector. Saved as `prefix`.
SuffixText field in the inspector. block.json default: %. Saved as `suffix`.
ShapeSelect 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 ShadowOn/off toggle in the inspector. On by default. Saved as `shadow`.
Style — BorderOn/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 — BackgroundColor control in the inspector. block.json default: #6c3fb5. Saved as `bgColor`.
Number & TextColor control in the inspector. block.json default: #ffffff. Saved as `textColor`.
Label (override)Color control in the inspector. Saved as `labelColor`.
Colors — BorderColor control in the inspector. block.json default: #e0d7f8. Saved as `borderColor`.

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

Get Blockenberg

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

Get Blockenberg