Demo
  • HEROES & NAV

    • Hero Sections
    • Bold Heroes
    • Breadcrumbs
    • Banner Patterns
    • Floating Bars

    SOCIAL PROOF

    • Single Reviews
    • Multi Reviews
    • Multi Reviews (Alt)
    • Testimonial Sliders
    • Logo Grids
    • Stats & Counters

    CONTENT

    • Simple Post
    • Advanced Post
    • Modern Post
    • Timeline
    • Team Sections
    • Changelog
    • Careers
    • Events

    FORMS & FEEDBACK

    • CTA Sections
    • Contact Forms
    • Newsletter
    • Cookie Consent
    • Toasts

    FEATURES

    • 3 Card features
    • 4 Card Features
    • 6 Card Features
    • Feature Blocks
    • Process

    INTERACTIVE

    • Toggle Panels
    • Tabbed Sections
    • Video Lightboxes
    • Swiper Sliders
    • Vertical Sliders
    • Thumbnail Siders
    • Marquee Tickers
    • Before / After

    COMMERCE & DATA

    • Pricing Sections
    • Comparation Tables
    • Data tables

    LAYOUT

    • Footer Sections
    • Image Grids
    • Empty States
    • 404 Pages

    NAVIGATION

    • Navigation Bars

    MEDIA

    • Image Block
    • Icon Block
    • Video Block
    • Video Lightbox Block
    • Avatar Block

    DISPLAY

    • Badge Block
    • Tag Block
    • Tooltip Block
    • Card Block
    • Divider Block
    • Breadcrumb Block

    Layout

    • Grid Block
    • Flex Block
    • Absolute Box Block

    TYPOGRAPHY

    • Heading Block
    • Paragraph Block
    • List Block
    • Blockquote Block

    INTERACTIVE

    • Button Block
    • Link Button Block
    • Accordion Block
    • Tabs Block
    • Slider Block
    • Thumbnail Slider Block
    • Marquee Block
    • Before After Slider Block

    DATA & CCOMMERCE

    • Data Table Block
    • Pricing Block
    • Progress Block
    • Timeline Block

    FORMS

    • Contact Form Block

    TECH & SAAS

    • Helios
    • Tempo
    • Verso
    • Ledge Finance

    TRAVEL & LEISURE

    • Meridian
    • Traverse
    • Vela
    • Wildpath
    • Poseidon

    HOSPITALITY

    • Wineatic
    • Trattoria Sole
    • Santa Lucia

    SERVICES & DESIGN

    • Kova
    • Haven Studio
    • Volta
    • Pxlcraft
    • Apex Agency

    SPECIALITY

    • Bright Smile
    • Dentist Modern
    • Bento
  • Ecommerce
  • Docs
Websites
Patterns
HEROES & NAV
Hero SectionsBold HeroesBreadcrumbsBanner PatternsFloating Bars
SOCIAL PROOF
Single ReviewsMulti ReviewsMulti Reviews (Alt)Testimonial SlidersLogo GridsStats & Counters
CONTENT
Simple PostAdvanced PostModern PostTimelineTeam SectionsChangelogCareersEvents
FORMS & FEEDBACK
CTA SectionsContact FormsNewsletterCookie ConsentToasts
FEATURES
3 Card features4 Card Features6 Card FeaturesFeature BlocksProcess
INTERACTIVE
Toggle PanelsTabbed SectionsVideo LightboxesSwiper SlidersVertical SlidersThumbnail SidersMarquee TickersBefore / After
COMMERCE & DATA
Pricing SectionsComparation TablesData tables
LAYOUT
Footer SectionsImage GridsEmpty States404 Pages
Blocks
NAVIGATION
Navigation Bars
MEDIA
Image BlockIcon BlockVideo BlockVideo Lightbox BlockAvatar Block
DISPLAY
Badge BlockTag BlockTooltip BlockCard BlockDivider BlockBreadcrumb Block
Layout
Grid BlockFlex BlockAbsolute Box Block
TYPOGRAPHY
Heading BlockParagraph BlockList BlockBlockquote Block
INTERACTIVE
Button BlockLink Button BlockAccordion BlockTabs BlockSlider BlockThumbnail Slider BlockMarquee BlockBefore After Slider Block
DATA & CCOMMERCE
Data Table BlockPricing BlockProgress BlockTimeline Block
FORMS
Contact Form Block
Demos
TECH & SAAS
HeliosTempoVersoLedge Finance
TRAVEL & LEISURE
MeridianTraverseVelaWildpathPoseidon
HOSPITALITY
WineaticTrattoria SoleSanta Lucia
SERVICES & DESIGN
KovaHaven StudioVoltaPxlcraftApex Agency
SPECIALITY
Bright SmileDentist ModernBento
EcommerceDocs
On This Page
Advanced Header BlockMenu & LogoBackground & StickyNavigation TypographyCTA ButtonCustom IconsFeatured ContentAll Available Controls
Blocks
Grid Block
Grid Item Block
Flex Block
Absolute Block
Heading Block
Paragraph Block
List Block
Image Block
Icon Block
Video Block
Video Lightbox Block
Button Block
Accordion Block
Tabs Block
Slider Block
Slider Item Block
Thumbnail Slider
Thumbnail Slider Item
Marquee Block
Marquee Item Block
Before / After
Data Table Block
Pricing Card Block
Progress Bar Block
Timline Block
Header Block
Simple Header
Advanced Header
Advanced Header Featured
Float Header
Blog Listing Block
Separator Block
Contact Form Block
Docs

/

Navigation

/

Advanced Header Block

Advanced Header Block

Full mega-menu header with nested dropdown panels, featured content areas, custom icons, and a CTA button. Supports sticky mode, responsive typography at three levels, and column dividers. Uses Advanced Header Featured Block children to map rich content into menu items.

MEGA-MENU HEADER

Products

Solutions

Resources

Pricing

Get Started

PLATFORM

Analytics

Automation

Integrations

DEVELOPERS

API Docs

SDKs

Changelog

COMPANY

About

Careers

Contact

FEATURED

New Release

Check out what's new

Dynamic block

This block uses render.php for server-side rendering. The save() function returns InnerBlocks.Content (hybrid save) so featured block children are serialised into the block comment. At render time, render.php reads inner blocks, maps featured content to the corresponding menu items, and builds the full header markup live.

When to use this block

  • Marketing sites needing mega-menu dropdowns with columns and featured content
  • Headers that require sticky behaviour with a different background color
  • Navigation with a prominent call-to-action button
  • Fully custom mobile icons (hamburger, close, back arrow)

Menu & Logo

Select a WordPress menu by ID and configure the site logo with maximum dimensions.

Menu & Logo

Sidebar Panel

Menu ID

--

Logo URL

image

Logo Max Width

120

px

Logo Max Height

40

px

Max Width

1200

px

Header Height

80

px

HOW IT WORKS

  • menuId — The WordPress nav menu ID. render.php uses this to fetch menu items and build the dropdown tree.
  • Logo — URL to the logo image, constrained by maxWidth and maxHeight.
  • Header Height — Responsive across 3 breakpoints. Controls the overall header bar height.

Header Height is responsive: Mobile Tablet Desktop

Background & Sticky

Three background colors and a sticky toggle that pins the header on scroll with its own background.

Background & Sticky

Sidebar Panel

Sticky

On
Off

Header Background

#FFFFFF

Sticky Background

#FFFFFF

Dropdown Background

#FFFFFF

COLOR APPLICATION

Header BG

Default header bar

Sticky BG

Applied when scrolled & sticky

Dropdown BG

Mega-menu panel background

Navigation Typography

Three independent typography levels: top-level nav links, mega-menu headings, and child links. Each is fully responsive.

Nav Links

Level 1

Font Size

16

px

Weight

500

Line Height

1.5

Letter Spacing

0

px

Color

#171717

Hover

#525252

Menu Headings

Level 2

Font Size

12

px

Weight

700

Line Height

1.4

Letter Spacing

1

px

Color

#AOAOAO

Child Links

Level 3

Font Size

14

px

Weight

400

Line Height

1.5

Letter Spacing

0

px

Color

#525252

Hover

#171717

All three levels are responsive: Mobile Tablet Desktop — Column divider: dividerWidth + dividerColor between dropdown columns.

CTA Button

Optional call-to-action button in the header bar with full color, border, radius, and padding control.

CTA Button

Sidebar Panel

Show CTA

On
Off

Text

Get Started

URL

#

Background

#171717

Text Color

#FFFFFF

Hover BG

#3D3D3D

Hover Text

#FFFFFF

Border

0

px

Radius

6

px

Padding

8 / 16

CTA PREVIEW

Get Started

Default state

Get Started

Hover state

Border, radius, and padding are responsive across 3 breakpoints.

Responsive controls: Mobile Tablet Desktop

Custom Icons

Four icon slots for mobile navigation. Each accepts a custom image URL with independent width and height.

Icons

Sidebar Panel

Hamburger

url / w / h

Close

url / w / h

Arrow

url / w / h

Back

url / w / h

ICON SLOTS

Hamburger

Close

Arrow

Back

Each icon has independent url, width, and height controls. Use SVG or PNG images.

Featured Content

The Advanced Header Featured Block is the only allowed child block. It associates rich content (images, text, links) with specific menu items in the mega-menu dropdown.

HOW FEATURED CONTENT WORKS

  • 1. Add advanced-header-featured-block children inside this block in the editor.
  • 2. Each featured block targets a specific menu item.
  • 3. At render, render.php reads InnerBlocks and maps each featured block to its menu item's dropdown panel.
  • 4. The featured area appears beside the link columns in the mega-menu.

Hybrid save pattern

Unlike most dynamic blocks that return null from save(), this block returns InnerBlocks.Content. This serialises the featured block children into the post content so render.php can access them server-side when building the header.

All Available Controls

Menu & Logo menuId, logo url/maxWidth/maxHeight, maxWidth, headerHeight

menuId: WordPress menu ID. logoUrl: image URL. logoMaxWidth/logoMaxHeight: px. maxWidth: header container max-width, 16-value list. headerHeight (+Md/Lg): responsive header bar height.

Background & Sticky Header, sticky, dropdown backgrounds + sticky toggle

sticky: boolean toggle. headerBgColor: default background. stickyBgColor: background when scrolled and sticky. dropdownBgColor: mega-menu panel background.

Nav Link Typography Font size, weight, line height, letter spacing, color, hover — 3 breakpoints

navFontSize/navFontWeight/navLineHeight/navLetterSpacing (+Md/Lg). navColor: default color. navHoverColor: hover state. Applied to top-level navigation links.

Heading & Child Typography Mega-menu headings + child link styles, 3 breakpoints each

Headings: headingFontSize/headingFontWeight/headingLineHeight/headingLetterSpacing (+Md/Lg) + headingColor.
Child links: childFontSize/childFontWeight/childLineHeight/childLetterSpacing (+Md/Lg) + childColor/childHoverColor.
Divider: dividerWidth (px) + dividerColor between mega-menu columns.

CTA Button Toggle, text, url, colors, hover, border, radius, padding

ctaEnabled: toggle. ctaText/ctaUrl: label and link. ctaBgColor/ctaTextColor/ctaHoverBgColor/ctaHoverTextColor: colors. ctaBorder (+Md/Lg): border width. ctaRadius (+Md/Lg): border radius. ctaPaddingTop/Right/Bottom/Left (+Md/Lg): responsive padding.

Custom Icons Hamburger, close, arrow, back — url/width/height each

hamburgerIconUrl/hamburgerIconWidth/hamburgerIconHeight. closeIconUrl/closeIconWidth/closeIconHeight. arrowIconUrl/arrowIconWidth/arrowIconHeight. backIconUrl/backIconWidth/backIconHeight.

Spacing & Padding Mobile item padding, child/heading padding

mobileItemPadding: padding for mobile menu items. childPaddingTop/Right/Bottom/Left: inner padding on child links. headingPaddingTop/Right/Bottom/Left: inner padding on mega-menu heading items.

Related Blocks

Header Block

Standard header with nav links and logo. No mega-menu dropdowns.

Simple Header

Minimal header with basic navigation. Ideal for simple layouts.

Advanced Header Featured

Child block that maps featured content to mega-menu items.

Float Header

Floating header variant with overlay positioning.

Brandname

Building tools that help teams move faster, ship better, and stay aligned.

Product

  • Features
  • Pricing
  • Integrations
  • Changelog

Company

  • About
  • Blog
  • Careers
  • Press

Resources

  • Documentation
  • API Reference
  • Support
  • Status

© 2026 Brandname. All rights reserved.

Privacy Policy
Terms of Service