Content · Gutenberg
Mixed Heading block for WordPress
A heading or paragraph where each word/phrase segment can have its own style — gradient, highlight, stroke, badge, mono, or normal.
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
A heading or paragraph where each word/phrase segment can have its own style — gradient, highlight, stroke, badge, mono, or normal.
Inspector panels on this block: Heading Settings, Text Segments (. Those titles come from index.js, not from a shared template.
Behavior controls: “HTML Tag” options: H1, H2, H3, H4, H5; “Text Align” options: Left, Center, Right; “Gradient Direction” options: Left → Right, Right → Left, Top → Bottom, Diagonal ↘, Diagonal ↗; “Text Segments ( — Style” options: Normal, Gradient Text, Highlight (bg), Outlined/Stroke, Badge Pill.
Where to find it
Gutenberg inserter → Content → search “Mixed Heading” (block name `blockenberg/mixed-heading` in block.json). Style it in the sidebar after insert.
How to use Mixed Heading block for WordPress
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Mixed Heading”, insert it. Category: Content.
- Configure inspector controls that exist on this block. Open Heading Settings. Set “HTML Tag”, “Text Align”, “Max Width (px)”, “Padding Top (px)”.
- 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 |
|---|---|
| HTML Tag | Select control; the chosen value is saved on the block. Options: H1; H2; H3; H4; H5; H6; p (paragraph); div. block.json default: h2. Saved as `tag`. |
| Text Align | Select control; the chosen value is saved on the block. Options: Left; Center; Right. block.json default: center. Saved as `textAlign`. |
| Max Width (px) | Numeric range control in the inspector. Range 200–1400. block.json default: 800. Saved as `maxWidth`. |
| Padding Top (px) | Numeric range control in the inspector. Range 0–120. block.json default: 0. Saved as `paddingTop`. |
| Padding Bottom (px) | Numeric range control in the inspector. Range 0–120. block.json default: 0. Saved as `paddingBottom`. |
| Gradient Direction | Select control; the chosen value is saved on the block. Options: Left → Right; Right → Left; Top → Bottom; Diagonal ↘; Diagonal ↗. block.json default: to right. Saved as `gradientDir`. |
| Stroke Width (px) | Numeric range control in the inspector. Range 1–8. block.json default: 2. Saved as `strokeWidth`. |
| Badge Border Radius (px) | Numeric range control in the inspector. Range 0–30. block.json default: 6. Saved as `badgeRadius`. |
| Text Segments ( — Text | Text field in the inspector. Saved as `segments`. |
| Text Segments ( — Style | Select control; the chosen value is saved on the block. Options: Normal; Gradient Text; Highlight (bg); Outlined/Stroke; Badge Pill; Monospace/Code; Ghost (faded). Saved as `segments`. |
| Font Weight | Select control; the chosen value is saved on the block. Options: 300 Light; 400 Normal; 500 Medium; 600 Semibold; 700 Bold; 800 ExtraBold; 900 Black. Saved as `segments`. |
| Italic | On/off toggle in the inspector. Saved as `segments`. |
| Underline | On/off toggle in the inspector. Saved as `segments`. |
| Scale (1 = same size) | Numeric range control in the inspector. Range 0.5–2. Saved as `segments`. |
| Letter Spacing (em) | Numeric range control in the inspector. Range -0.1–0.3. Saved as `segments`. |
What the front-end script actually does
- The view script reads HTML data attributes: data-opts, data-rendered.
When this is the right block
- A heading or paragraph where each word/phrase segment can have its own style — gradient, highlight, stroke, badge, mono, or normal — that is the job of Mixed Heading, not a generic content block.
- Use it when you need the editor control labeled “HTML Tag”, which exists on this block’s inspector.
- It matches pages about heading, typography, styled text.
- 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 Mixed Heading block in WordPress?
Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Mixed Heading”. It sits under Content. After insert, open Heading Settings and set “HTML Tag”, “Text Align”, “Max Width (px)”, “Padding Top (px)”.
What makes Mixed Heading different from other Blockenberg blocks?
A heading or paragraph where each word/phrase segment can have its own style — gradient, highlight, stroke, badge, mono, or normal. Inspector labels on this block include “HTML Tag”, “Text Align”, “Max Width (px)”, “Padding Top (px)”.
Is the Mixed Heading Gutenberg block free?
Yes. Mixed Heading ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.
Can I style Mixed Heading 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: Heading Settings, Text Segments ().
Related content blocks
Styled Text Builder
Build a paragraph from mixed inline text segments — combine highlights, badges, code spans, gradient text, and bold or colored fragments in a single richly-styled sentence.
Big Stat
Display a single large impactful statistic with prefix, suffix, label, and multiple visual styles.
Callout
Highlighted panel for tips, warnings or success messages with icon, title and dismissible option.
Section Intro
Reusable section header — eyebrow badge, large heading, subtitle, and optional CTA button. Use before any content section.
Text Highlight
Animate a color marker / highlighter sweep behind specific words or phrases when they scroll into view.
Accordion
Collapsible accordion panels for FAQ, features, and more.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Mixed Heading from the Gutenberg inserter.