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.

Get Blockenberg

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

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Mixed Heading”, insert it. Category: Content.
  3. Configure inspector controls that exist on this block. Open Heading Settings. Set “HTML Tag”, “Text Align”, “Max Width (px)”, “Padding Top (px)”.
  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
HTML TagSelect 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 AlignSelect 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 DirectionSelect 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 ( — TextText field in the inspector. Saved as `segments`.
Text Segments ( — StyleSelect 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 WeightSelect 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`.
ItalicOn/off toggle in the inspector. Saved as `segments`.
UnderlineOn/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

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 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

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Mixed Heading from the Gutenberg inserter.

Get Blockenberg