Layout · Gutenberg

Page Header block for WordPress

A versatile page hero/banner section: eyebrow label, headline, subtitle, breadcrumbs, CTA buttons, and rich background options.

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 versatile page hero/banner section: eyebrow label, headline, subtitle, breadcrumbs, CTA buttons, and rich background options.

Inspector panels on this block: Style & Layout, Content. Those titles come from index.js, not from a shared template.

Behavior controls: “Style & Layout — Style” options: Centered, Left-aligned, Split (text+bg), Minimal, Dark hero; “Background type” options: Solid color, Gradient, Image; “Text alignment” options: Left, Center, Right.

Page Header 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 “Page Header” (block name `blockenberg/page-header` in block.json). Style it in the sidebar after insert.

How to use Page Header block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Page Header”, insert it. Category: Layout.
  3. Configure inspector controls that exist on this block. Open Style & Layout. Set “Style & Layout — Style”, “Background type”, “Overlay opacity (%)”, “Text alignment”.
  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
Style & Layout — StyleSelect control; the chosen value is saved on the block. Options: Centered; Left-aligned; Split (text+bg); Minimal; Dark hero. block.json default: centered. Saved as `style`.
Background typeSelect control; the chosen value is saved on the block. Options: Solid color; Gradient; Image. block.json default: color. Saved as `bgType`.
Overlay opacity (%)Numeric range control in the inspector. Range 0–100. block.json default: 55. Saved as `bgOverlayOpacity`.
Text alignmentSelect control; the chosen value is saved on the block. Options: Left; Center; Right. block.json default: center. Saved as `textAlign`.
Content max-width (px)Numeric range control in the inspector. Range 400–1400. block.json default: 760. Saved as `contentMaxWidth`.
Show eyebrowOn/off toggle in the inspector. On by default. Saved as `showEyebrow`.
Show subtitleOn/off toggle in the inspector. On by default. Saved as `showSubtitle`.
Show breadcrumbsOn/off toggle in the inspector. Off by default. Saved as `showBreadcrumbs`.
Primary buttonOn/off toggle in the inspector. On by default. Saved as `showPrimaryBtn`.
Primary labelText field in the inspector. block.json default: Get Started. Saved as `primaryLabel`.
Primary URLText field in the inspector. block.json default: #. Saved as `primaryUrl`.
Secondary buttonOn/off toggle in the inspector. On by default. Saved as `showSecondaryBtn`.
Secondary labelText field in the inspector. block.json default: Learn More. Saved as `secondaryLabel`.
Secondary URLText field in the inspector. block.json default: #. Saved as `secondaryUrl`.
Padding top (px)Numeric range control in the inspector. Range 0–240. block.json default: 100. Saved as `paddingTop`.
Padding bottom (px)Numeric range control in the inspector. Range 0–240. block.json default: 100. Saved as `paddingBottom`.
Button radius (px)Numeric range control in the inspector. Range 0–50. block.json default: 50. Saved as `btnRadius`.
Background colorColor control in the inspector. block.json default: #f8f5ff. Saved as `bgColor`.
Overlay colorColor control in the inspector. block.json default: #0f172a. Saved as `bgOverlayColor`.
Eyebrow bgColor control in the inspector. block.json default: #ede9fe. Saved as `eyebrowBg`.
Eyebrow textColor control in the inspector. block.json default: #6c3fb5. Saved as `eyebrowColor`.
HeadlineColor control in the inspector. block.json default: #1e293b. Saved as `headlineColor`.
SubtitleColor control in the inspector. block.json default: #64748b. Saved as `subtitleColor`.
Primary btn bgColor control in the inspector. block.json default: #6c3fb5. Saved as `primaryBtnBg`.
Primary btn textColor control in the inspector. block.json default: #ffffff. Saved as `primaryBtnColor`.
Secondary btn textColor control in the inspector. block.json default: #6c3fb5. Saved as `secBtnColor`.
Breadcrumb colorColor control in the inspector. block.json default: #94a3b8. Saved as `breadcrumbColor`.

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 Page Header block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Page Header”. It sits under Layout. After insert, open Style & Layout and set “Style & Layout — Style”, “Background type”, “Overlay opacity (%)”, “Text alignment”.

What makes Page Header different from other Blockenberg blocks?

A versatile page hero/banner section: eyebrow label, headline, subtitle, breadcrumbs, CTA buttons, and rich background options. Inspector labels on this block include “Style & Layout — Style”, “Background type”, “Overlay opacity (%)”, “Text alignment”.

Is the Page Header Gutenberg block free?

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

Can I style Page Header 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: Style & Layout, Content).

Related layout blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Page Header from the Gutenberg inserter.

Get Blockenberg