Calculators · Gutenberg

Recipe Scaler block for WordPress

Scale recipe ingredient quantities up or down by adjusting the number of servings. Add, edit and remove ingredients with a live WYSIWYG preview.

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

Scale recipe ingredient quantities up or down by adjusting the number of servings. Add, edit and remove ingredients with a live WYSIWYG preview.

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

Where to find it

Gutenberg inserter → Calculators → search “Recipe Scaler” (block name `blockenberg/recipe-scaler` in block.json). Style it in the sidebar after insert.

How to use Recipe Scaler block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Recipe Scaler”, insert it. Category: Calculators.
  3. Configure inspector controls that exist on this block. Open Recipe Settings. Set “Recipe Name”, “Default Servings”, “Maximum Servings”, “Show quick serving buttons”.
  4. Check the published page. The view script reads HTML data attributes: data-idx, data-opts. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Recipe NameText field in the inspector. block.json default: Classic Pancakes. Saved as `recipeName`.
Default ServingsNumeric range control in the inspector. Range 1–24. block.json default: 4. Saved as `defaultServings`.
Maximum ServingsNumeric range control in the inspector. Range 4–100. block.json default: 24. Saved as `maxServings`.
Show quick serving buttonsOn/off toggle in the inspector. On by default. Saved as `showQuickBtns`.
Show recipe notesOn/off toggle in the inspector. On by default. Saved as `showNotes`.
Recipe NotesText field in the inspector. block.json default: Do not over-mix the batter — a few lumps are fine!. Saved as `recipeNotes`.
Max Width (px)Numeric range control in the inspector. Range 400–1100. block.json default: 660. Saved as `contentMaxWidth`.
Typography — TitleShared Blockenberg typography popover (family, size, weight, spacing). Saved as `titleTypo`.

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 Recipe Scaler block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Recipe Scaler”. It sits under Calculators. After insert, open Recipe Settings and set “Recipe Name”, “Default Servings”, “Maximum Servings”, “Show quick serving buttons”.

What makes Recipe Scaler different from other Blockenberg blocks?

Scale recipe ingredient quantities up or down by adjusting the number of servings. Add, edit and remove ingredients with a live WYSIWYG preview. Inspector labels on this block include “Recipe Name”, “Default Servings”, “Maximum Servings”, “Show quick serving buttons”.

Is the Recipe Scaler Gutenberg block free?

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

Can I style Recipe Scaler 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: Recipe Settings, Sizing).

Related calculators blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Recipe Scaler from the Gutenberg inserter.

Get Blockenberg