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.
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
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Definition Block”, insert it. Category: Content.
- Configure inspector controls that exist on this block. Open Definition. Set “Part of Speech”, “Show Pronunciation”, “Show Part of Speech”, “Show Full Explanation”.
- 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
| Control | What the code does |
|---|---|
| Part of Speech | Select 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 Pronunciation | On/off toggle in the inspector. On by default. Saved as `showPronunciation`. |
| Show Part of Speech | On/off toggle in the inspector. On by default. Saved as `showPartOfSpeech`. |
| Show Full Explanation | On/off toggle in the inspector. On by default. Saved as `showLongDef`. |
| Show Examples | On/off toggle in the inspector. On by default. Saved as `showExamples`. |
| Show Synonyms | On/off toggle in the inspector. On by default. Saved as `showSynonyms`. |
| Show Antonyms | On/off toggle in the inspector. Off by default. Saved as `showAntonyms`. |
| Show Etymology | On/off toggle in the inspector. Off by default. Saved as `showEtymology`. |
| Source Label | Text field in the inspector. Saved as `sourceLabel`. |
| Source URL | Text field in the inspector. Saved as `sourceUrl`. |
| Card Style | Select 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 Radius | Numeric range control in the inspector. Range 0–30. block.json default: 10. Saved as `borderRadius`. |
| Padding Top | Numeric range control in the inspector. Range 0–100. block.json default: 0. Saved as `paddingTop`. |
| Padding Bottom | Numeric range control in the inspector. Range 0–100. block.json default: 0. Saved as `paddingBottom`. |
| Colors — Background | Color control in the inspector. block.json default: #ffffff. Saved as `bgColor`. |
| Colors — Border | Color control in the inspector. block.json default: #e2e8f0. Saved as `borderColor`. |
| Accent | Color control in the inspector. block.json default: #7c3aed. Saved as `accentColor`. |
| Term | Color control in the inspector. block.json default: #0f172a. Saved as `termColor`. |
| Pronunciation | Color control in the inspector. block.json default: #7c3aed. Saved as `pronunciationColor`. |
| Part of Speech BG | Color control in the inspector. block.json default: #f5f3ff. Saved as `posBg`. |
| Part of Speech Text | Color control in the inspector. block.json default: #7c3aed. Saved as `posColor`. |
| Short Definition | Color control in the inspector. block.json default: #1e293b. Saved as `shortDefColor`. |
| Long Explanation | Color control in the inspector. block.json default: #475569. Saved as `longDefColor`. |
| Examples | Color control in the inspector. block.json default: #475569. Saved as `exampleColor`. |
| Section Labels | Color control in the inspector. block.json default: #94a3b8. Saved as `labelColor`. |
| Synonym / Antonym Tags | Color 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
- The view script reads HTML data attributes: data-opts, data-rendered.
When this is the right block
- Dictionary-style term definition with pronunciation, part of speech, examples and synonyms — that is the job of Definition Block, not a generic content block.
- Use it when you need the editor control labeled “Part of Speech”, which exists on this block’s inspector.
- It matches pages about definition, dictionary, glossary.
- 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 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
Tooltip
Display a word or phrase with a hover tooltip popup — great for definitions, abbreviations, and inline explanations.
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.
Alert / Notice
Info, success, warning or error notice block with icon, title and body text. Pure CSS — zero JS.
Big Stat
Display a single large impactful statistic with prefix, suffix, label, and multiple visual styles.
Blockquote / Pull Quote
Stylish quote block with accent line or decorative marks, author name, role and photo.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Definition Block from the Gutenberg inserter.