Content · Gutenberg

Definition Block block for WordPress

Dictionary-style term definition with pronunciation, part of speech, examples and synonyms.

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

Dictionary-style term definition with pronunciation, part of speech, examples and synonyms.

Inspector panels on this block: Definition, Source, Style & Spacing. Those titles come from index.js, not from a shared template.

Behavior controls: “Part of Speech” options: noun, verb, adjective, adverb, pronoun; “Card Style” options: Card (bordered), Classic (left accent), Minimal (no border), Spotlight (accent header).

Where to find it

Gutenberg inserter → Content → search “Definition Block” (block name `blockenberg/definition-block` in block.json). Style it in the sidebar after insert.

How to use Definition Block block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Definition Block”, insert it. Category: Content.
  3. Configure inspector controls that exist on this block. Open Definition. Set “Part of Speech”, “Show Pronunciation”, “Show Part of Speech”, “Show Full Explanation”.
  4. Check the published page. The view script reads HTML data attributes: data-opts, data-rendered. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Part of SpeechSelect control; the chosen value is saved on the block. Options: noun; verb; adjective; adverb; pronoun; preposition; conjunction; interjection; phrase; abbreviation. block.json default: noun. Saved as `partOfSpeech`.
Show PronunciationOn/off toggle in the inspector. On by default. Saved as `showPronunciation`.
Show Part of SpeechOn/off toggle in the inspector. On by default. Saved as `showPartOfSpeech`.
Show Full ExplanationOn/off toggle in the inspector. On by default. Saved as `showLongDef`.
Show ExamplesOn/off toggle in the inspector. On by default. Saved as `showExamples`.
Show SynonymsOn/off toggle in the inspector. On by default. Saved as `showSynonyms`.
Show AntonymsOn/off toggle in the inspector. Off by default. Saved as `showAntonyms`.
Show EtymologyOn/off toggle in the inspector. Off by default. Saved as `showEtymology`.
Source LabelText field in the inspector. Saved as `sourceLabel`.
Source URLText field in the inspector. Saved as `sourceUrl`.
Card StyleSelect control; the chosen value is saved on the block. Options: Card (bordered); Classic (left accent); Minimal (no border); Spotlight (accent header). block.json default: card. Saved as `style`.
Border RadiusNumeric range control in the inspector. Range 0–30. block.json default: 10. Saved as `borderRadius`.
Padding TopNumeric range control in the inspector. Range 0–100. block.json default: 0. Saved as `paddingTop`.
Padding BottomNumeric range control in the inspector. Range 0–100. block.json default: 0. Saved as `paddingBottom`.
Colors — BackgroundColor control in the inspector. block.json default: #ffffff. Saved as `bgColor`.
Colors — BorderColor control in the inspector. block.json default: #e2e8f0. Saved as `borderColor`.
AccentColor control in the inspector. block.json default: #7c3aed. Saved as `accentColor`.
TermColor control in the inspector. block.json default: #0f172a. Saved as `termColor`.
PronunciationColor control in the inspector. block.json default: #7c3aed. Saved as `pronunciationColor`.
Part of Speech BGColor control in the inspector. block.json default: #f5f3ff. Saved as `posBg`.
Part of Speech TextColor control in the inspector. block.json default: #7c3aed. Saved as `posColor`.
Short DefinitionColor control in the inspector. block.json default: #1e293b. Saved as `shortDefColor`.
Long ExplanationColor control in the inspector. block.json default: #475569. Saved as `longDefColor`.
ExamplesColor control in the inspector. block.json default: #475569. Saved as `exampleColor`.
Section LabelsColor control in the inspector. block.json default: #94a3b8. Saved as `labelColor`.
Synonym / Antonym TagsColor control in the inspector. block.json default: #7c3aed. Saved as `synonymColor`.
Term (Typo Term)Shared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoTerm`.
Short definition (Typo Short Def)Shared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoShortDef`.
Long explanation (Typo Long Def)Shared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoLongDef`.
Examples font size (px)Numeric range control in the inspector. Range 10–20. block.json default: 13. Saved as `exampleFontSize`.
Etymology font size (px)Numeric range control in the inspector. Range 10–20. block.json default: 13. Saved as `etymologyFontSize`.
Tags font size (px)Numeric range control in the inspector. Range 10–18. block.json default: 12. Saved as `tagFontSize`.

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 Definition Block block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Definition Block”. It sits under Content. After insert, open Definition and set “Part of Speech”, “Show Pronunciation”, “Show Part of Speech”, “Show Full Explanation”.

What makes Definition Block different from other Blockenberg blocks?

Dictionary-style term definition with pronunciation, part of speech, examples and synonyms. Inspector labels on this block include “Part of Speech”, “Show Pronunciation”, “Show Part of Speech”, “Show Full Explanation”.

Is the Definition Block Gutenberg block free?

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

Can I style Definition Block 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: Definition, Source, Style & Spacing).

Related content blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Definition Block from the Gutenberg inserter.

Get Blockenberg