Content · Gutenberg
Highlight Section block for WordPress
Editorial hero section with a giant decorative background word, heading, subtext, and optional CTA button.
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
Editorial hero section with a giant decorative background word, heading, subtext, and optional CTA button.
Inspector panels on this block: Background Word, Content, Layout. Those titles come from index.js, not from a shared template.
Behavior controls: “Background Word Weight” options: Extra Bold (900), Bold (700), Normal (400); “Text Align” options: Left, Center, Right.
Where to find it
Gutenberg inserter → Content → search “Highlight Section” (block name `blockenberg/highlight-section` in block.json). Style it in the sidebar after insert.
How to use Highlight Section block for WordPress
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Highlight Section”, insert it. Category: Content.
- Configure inspector controls that exist on this block. Open Background Word. Set “Show Background Word”, “Background Word”, “Background Word Size (px)”, “Background Word Weight”.
- 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
| Control | What the code does |
|---|---|
| Show Background Word | On/off toggle in the inspector. On by default. Saved as `showBgWord`. |
| Background Word | Text field in the inspector. block.json default: IMPACT. Saved as `bgWord`. |
| Background Word Size (px) | Numeric range control in the inspector. Range 80–600. block.json default: 240. Saved as `bgWordSize`. |
| Background Word Weight | Select control; the chosen value is saved on the block. Options: Extra Bold (900); Bold (700); Normal (400). block.json default: 900. Saved as `bgWordWeight`. |
| Show Subtext | On/off toggle in the inspector. On by default. Saved as `showSubtext`. |
| Show CTA Button | On/off toggle in the inspector. On by default. Saved as `showCta`. |
| CTA Label | Text field in the inspector. block.json default: Get Started. Saved as `ctaLabel`. |
| CTA URL | Text field in the inspector. block.json default: #. Saved as `ctaUrl`. |
| Open in New Tab | On/off toggle in the inspector. Off by default. Saved as `ctaOpenNewTab`. |
| Text Align | Select control; the chosen value is saved on the block. Options: Left; Center; Right. block.json default: center. Saved as `textAlign`. |
| Colors — Background | Color control in the inspector. block.json default: #ffffff. Saved as `bgColor`. |
| Heading | Color control in the inspector. block.json default: #111827. Saved as `headingColor`. |
| Subtext | Color control in the inspector. block.json default: #4b5563. Saved as `subtextColor`. |
| CTA Background | Color control in the inspector. block.json default: #7c3aed. Saved as `ctaBg`. |
| CTA Text | Color control in the inspector. block.json default: #ffffff. Saved as `ctaColor`. |
| Background Word Color | Color control in the inspector. block.json default: rgba(0,0,0,0.05). Saved as `bgWordColor`. |
| Max Width (px) | Numeric range control in the inspector. Range 400–1600. block.json default: 880. Saved as `maxWidth`. |
| Padding Top (px) | Numeric range control in the inspector. Range 0–300. block.json default: 100. Saved as `paddingTop`. |
| Padding Bottom (px) | Numeric range control in the inspector. Range 0–300. block.json default: 100. Saved as `paddingBottom`. |
What the front-end script actually does
- The view script reads HTML data attributes: data-opts.
When this is the right block
- Editorial hero section with a giant decorative background word, heading, subtext, and optional CTA button — that is the job of Highlight Section, not a generic content block.
- Use it when you need the editor control labeled “Show Background Word”, which exists on this block’s inspector.
- 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 Highlight Section block in WordPress?
Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Highlight Section”. It sits under Content. After insert, open Background Word and set “Show Background Word”, “Background Word”, “Background Word Size (px)”, “Background Word Weight”.
What makes Highlight Section different from other Blockenberg blocks?
Editorial hero section with a giant decorative background word, heading, subtext, and optional CTA button. Inspector labels on this block include “Show Background Word”, “Background Word”, “Background Word Size (px)”, “Background Word Weight”.
Is the Highlight Section Gutenberg block free?
Yes. Highlight Section ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.
Can I style Highlight Section 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: Background Word, Content, Layout).
Related content blocks
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.
Callout
Highlighted panel for tips, warnings or success messages with icon, title and dismissible option.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Highlight Section from the Gutenberg inserter.