Calculators · Gutenberg

Speed / Distance / Time Calculator block for WordPress

Solve any part of the Speed / Distance / Time triangle. Enter two values to calculate the third, with unit conversion between km/h, mph, m/s and more.

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

Solve any part of the Speed / Distance / Time triangle. Enter two values to calculate the third, with unit conversion between km/h, mph, m/s and more.

Inspector panels on this block: Calculator Settings, Display Options, Sizing. Those titles come from index.js, not from a shared template.

Behavior controls: “Default: Solve for” options: Speed, Distance, Time.

Where to find it

Gutenberg inserter → Calculators → search “Speed / Distance / Time Calculator” (block name `blockenberg/speed-calculator` in block.json). Style it in the sidebar after insert.

How to use Speed / Distance / Time Calculator block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Speed / Distance / Time Calculator”, insert it. Category: Calculators.
  3. Configure inspector controls that exist on this block. Open Calculator Settings. Set “Default: Solve for”, “Default Speed Unit”, “Default Distance Unit”, “Default Time Unit”.
  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
Default: Solve forSelect control; the chosen value is saved on the block. Options: Speed; Distance; Time. block.json default: speed. Saved as `defaultSolveFor`.
Default Speed UnitSelect control; the chosen value is saved on the block. block.json default: km/h. Saved as `defaultSpeedUnit`.
Default Distance UnitSelect control; the chosen value is saved on the block. block.json default: km. Saved as `defaultDistUnit`.
Default Time UnitSelect control; the chosen value is saved on the block. block.json default: hours. Saved as `defaultTimeUnit`.
Show formula referenceOn/off toggle in the inspector. On by default. Saved as `showFormula`.
Show unit conversionsOn/off toggle in the inspector. On by default. Saved as `showUnitConversions`.
Show real-world examplesOn/off toggle in the inspector. Off by default. Saved as `showExamples`.
Max Width (px)Numeric range control in the inspector. Range 400–1100. block.json default: 680. Saved as `contentMaxWidth`.

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 Speed / Distance / Time Calculator block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Speed / Distance / Time Calculator”. It sits under Calculators. After insert, open Calculator Settings and set “Default: Solve for”, “Default Speed Unit”, “Default Distance Unit”, “Default Time Unit”.

Does Speed / Distance / Time Calculator need a server or extra plugin?

No. After Blockenberg is active, the view script runs in the browser with the values you saved on the block.

Is the Speed / Distance / Time Calculator Gutenberg block free?

Yes. Speed / Distance / Time Calculator ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style Speed / Distance / Time Calculator 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: Calculator Settings, Display Options, Sizing).

Related calculators blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Speed / Distance / Time Calculator from the Gutenberg inserter.

Get Blockenberg