Layout · Gutenberg

Dark Hero block for WordPress

Dark glassmorphism hero for AI, SaaS and tech sites. Features glow effects, gradient text, optional floating stat badges, badge pill, and rich button controls.

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

Dark glassmorphism hero for AI, SaaS and tech sites. Features glow effects, gradient text, optional floating stat badges, badge pill, and rich button controls.

Inspector panels on this block: Content, Stats, Background & Effects, Headline style, Appearance. Those titles come from index.js, not from a shared template.

Behavior controls: “Badge style” options: Glow pill, Border pill, Subtle; “Background preset” options: Dark purple, Dark blue, Dark gray, Dark green, Dark rose; “Headline style — Style” options: Gradient text, White, Custom color; “Text align” options: Center, Left.

Dark Hero has no render.php and no frontend.js. The saved Gutenberg HTML is what visitors see, plus Blockenberg layout/typography CSS.

Where to find it

Gutenberg inserter → Layout → search “Dark Hero” (block name `blockenberg/dark-hero` in block.json). Style it in the sidebar after insert.

How to use Dark Hero block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Dark Hero”, insert it. Category: Layout.
  3. Configure inspector controls that exist on this block. Open Content. Set “Show badge”, “Badge text”, “Badge style”, “Show subtitle”.
  4. Publish. Save the page. Output is the saved block HTML; typography/colors follow Blockenberg shared panels.

Inspector controls from this block’s code

ControlWhat the code does
Show badgeOn/off toggle in the inspector. On by default. Saved as `showBadge`.
Badge textText field in the inspector. block.json default: ✦ Introducing v2.0. Saved as `badgeText`.
Badge styleSelect control; the chosen value is saved on the block. Options: Glow pill; Border pill; Subtle. block.json default: glow. Saved as `badgeStyle`.
Show subtitleOn/off toggle in the inspector. On by default. Saved as `showSubtitle`.
Primary buttonText field in the inspector. block.json default: Start for free. Saved as `primaryLabel`.
Primary URLText field in the inspector. block.json default: #. Saved as `primaryUrl`.
Show secondary buttonOn/off toggle in the inspector. On by default. Saved as `showSecondary`.
Secondary buttonText field in the inspector. block.json default: Watch demo. Saved as `secondaryLabel`.
Secondary URLText field in the inspector. block.json default: #. Saved as `secondaryUrl`.
Show stats rowOn/off toggle in the inspector. On by default. Saved as `showStats`.
Background presetSelect control; the chosen value is saved on the block. Options: Dark purple; Dark blue; Dark gray; Dark green; Dark rose; Custom. block.json default: dark-purple. Saved as `bgStyle`.
Radial glowOn/off toggle in the inspector. On by default. Saved as `showGlow`.
Grid linesOn/off toggle in the inspector. On by default. Saved as `showGrid`.
Noise textureOn/off toggle in the inspector. Off by default. Saved as `showNoise`.
Glow size (px)Numeric range control in the inspector. Range 100–1200. block.json default: 600. Saved as `glowSize`.
Headline style — StyleSelect control; the chosen value is saved on the block. Options: Gradient text; White; Custom color. block.json default: gradient. Saved as `headlineStyle`.
Gradient angleNumeric range control in the inspector. Range 0–360. block.json default: 135. Saved as `gradientAngle`.
Text alignSelect control; the chosen value is saved on the block. Options: Center; Left. block.json default: center. Saved as `textAlign`.
HeadingShared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoHeading`.
SubtitleShared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoSubtitle`.
Min height (px)Numeric range control in the inspector. Range 300–1000. block.json default: 620. Saved as `minHeight`.
Content max width (px)Numeric range control in the inspector. Range 400–1100. block.json default: 800. Saved as `contentMaxWidth`.
Button radius (px)Numeric range control in the inspector. Range 0–50. block.json default: 8. Saved as `btnRadius`.
Padding top (px)Numeric range control in the inspector. Range 0–240. block.json default: 96. Saved as `paddingTop`.
Padding bottom (px)Numeric range control in the inspector. Range 0–240. block.json default: 96. Saved as `paddingBottom`.
Glow colorColor control in the inspector. block.json default: #6c3fb5. Saved as `glowColor`.
SubtitleColor control in the inspector. block.json default: rgba(255,255,255,0.65). Saved as `subtitleColor`.
Primary button bgColor control in the inspector. block.json default: #7c3aed. Saved as `primaryBg`.
Primary button textColor control in the inspector. block.json default: #ffffff. Saved as `primaryColor`.
Stats textColor control in the inspector. block.json default: rgba(255,255,255,0.55). Saved as `statsColor`.

When this is the right block

Notes from the implementation

Static block: markup is saved in post content; no PHP render callback in this folder.

FAQ

How do I add the Dark Hero block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Dark Hero”. It sits under Layout. After insert, open Content and set “Show badge”, “Badge text”, “Badge style”, “Show subtitle”.

What makes Dark Hero different from other Blockenberg blocks?

Dark glassmorphism hero for AI, SaaS and tech sites. Features glow effects, gradient text, optional floating stat badges, badge pill, and rich button controls. Inspector labels on this block include “Show badge”, “Badge text”, “Badge style”, “Show subtitle”.

Is the Dark Hero Gutenberg block free?

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

Can I style Dark Hero 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: Content, Stats, Background & Effects, Headline style).

Related layout blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Dark Hero from the Gutenberg inserter.

Get Blockenberg