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.
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
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Dark Hero”, insert it. Category: Layout.
- Configure inspector controls that exist on this block. Open Content. Set “Show badge”, “Badge text”, “Badge style”, “Show subtitle”.
- Publish. Save the page. Output is the saved block HTML; typography/colors follow Blockenberg shared panels.
Inspector controls from this block’s code
| Control | What the code does |
|---|---|
| Show badge | On/off toggle in the inspector. On by default. Saved as `showBadge`. |
| Badge text | Text field in the inspector. block.json default: ✦ Introducing v2.0. Saved as `badgeText`. |
| Badge style | Select control; the chosen value is saved on the block. Options: Glow pill; Border pill; Subtle. block.json default: glow. Saved as `badgeStyle`. |
| Show subtitle | On/off toggle in the inspector. On by default. Saved as `showSubtitle`. |
| Primary button | Text field in the inspector. block.json default: Start for free. Saved as `primaryLabel`. |
| Primary URL | Text field in the inspector. block.json default: #. Saved as `primaryUrl`. |
| Show secondary button | On/off toggle in the inspector. On by default. Saved as `showSecondary`. |
| Secondary button | Text field in the inspector. block.json default: Watch demo. Saved as `secondaryLabel`. |
| Secondary URL | Text field in the inspector. block.json default: #. Saved as `secondaryUrl`. |
| Show stats row | On/off toggle in the inspector. On by default. Saved as `showStats`. |
| Background preset | Select 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 glow | On/off toggle in the inspector. On by default. Saved as `showGlow`. |
| Grid lines | On/off toggle in the inspector. On by default. Saved as `showGrid`. |
| Noise texture | On/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 — Style | Select control; the chosen value is saved on the block. Options: Gradient text; White; Custom color. block.json default: gradient. Saved as `headlineStyle`. |
| Gradient angle | Numeric range control in the inspector. Range 0–360. block.json default: 135. Saved as `gradientAngle`. |
| Text align | Select control; the chosen value is saved on the block. Options: Center; Left. block.json default: center. Saved as `textAlign`. |
| Heading | Shared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoHeading`. |
| Subtitle | Shared 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 color | Color control in the inspector. block.json default: #6c3fb5. Saved as `glowColor`. |
| Subtitle | Color control in the inspector. block.json default: rgba(255,255,255,0.65). Saved as `subtitleColor`. |
| Primary button bg | Color control in the inspector. block.json default: #7c3aed. Saved as `primaryBg`. |
| Primary button text | Color control in the inspector. block.json default: #ffffff. Saved as `primaryColor`. |
| Stats text | Color control in the inspector. block.json default: rgba(255,255,255,0.55). Saved as `statsColor`. |
When this is the right block
- Dark glassmorphism hero for AI, SaaS and tech sites. Features glow effects, gradient text, optional floating stat badges, badge pill, and rich button controls — that is the job of Dark Hero, not a generic content block.
- Use it when you need the editor control labeled “Show badge”, which exists on this block’s inspector.
- It matches pages about hero, dark, glass.
- Inserter grouping: page structure, sections, and composition.
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
Gradient Hero
Full landing page hero with animated gradient/mesh background, badge, headline, CTA buttons, and social proof row.
Gradient Section
A full-width section with an animated CSS gradient background, headline, subtext, and dual call-to-action buttons.
Page Header
A versatile page hero/banner section: eyebrow label, headline, subtitle, breadcrumbs, CTA buttons, and rich background options.
Skewed Section
A content section with diagonal/angled top and/or bottom edges created via CSS clip-path. Place any blocks inside.
Split Hero
Two-column hero section with headline, badge, body text, dual CTA buttons and social proof on one side — image or video on the other. Built for landing pages.
Split Screen
Two-panel side-by-side layout with independent backgrounds, content, and optional scroll-snap.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Dark Hero from the Gutenberg inserter.