Design System WordPress Plugin
Home
Github
Home
Github
  • Site Editor

    • CSP
    • Notification Banner
    • In Page Navigation
    • Navigation Block
    • Auto Anchor
    • BreadCrumb Block
  • Developers

Navigation Block — Editor Guide

Add a site navigation menu to pages and posts. This block extends the WordPress core Navigation block with improved styling, submenu handling, and a mobile overlay menu.

Find it in:

  • Block Inserter (+) → Design System → Navigation

After inserting the block, select a WordPress Menu in the block settings.

Add the Navigation Block


How it works

  • Uses your existing WordPress Menus
    • Create or edit menus in WordPress Admin → Appearance → Menus
    • In the block settings, choose which Menu to display
  • Enhanced styling for:
    • Top-level items
    • Submenus (nested)
    • Editor preview
    • Mobile menu toggle (hamburger)
  • Responsive behavior:
    • Desktop: inline menu
    • Mobile: optional full-screen overlay with a toggle
    • Overlay behavior is controlled by Overlay Mode and the Mobile Breakpoint

Mobile navigation overlay


Key settings

  • Overlay Mode

    • Always Overlay: Always show as an overlay with a toggle
    • Mobile Overlay: Switch to overlay below the Mobile Breakpoint
    • Never Overlay: Always show as a standard inline menu
  • Mobile Breakpoint

    • Width at which Mobile Overlay activates (for Mobile Overlay mode)
    • Default: 768px
    • Adjustable in the block settings
  • Visibility

    • Show on Desktop: Visible at widths ≥ Mobile Breakpoint
    • Show on Mobile: Visible at widths < Mobile Breakpoint
    • Note: If both are disabled, the menu still renders as a safety fallback to avoid hiding site navigation entirely. To truly hide it, use theme visibility controls or CSS.

Navigation Block Settings


Submenus

  • Desktop: Open on hover; close when the pointer leaves the submenu area
  • Mobile: Open/close via the arrow toggle next to the parent item
  • Nested submenus are positioned to remain within the viewport

Accessibility: Behavior mirrors the core Navigation block for keyboard and screen-reader support.


Usage tips

  • Keep mobile labels concise to prevent wrapping in the overlay
  • Manage structure in Appearance → Menus; items are not added in the block editor
  • Test across breakpoints to confirm overlay and visibility match expectations

Testing

  1. Add the Navigation block to a page or post.
  2. In the settings panel, select a WordPress Menu.
  3. Configure Overlay Mode, Mobile Breakpoint, and Visibility.
  4. View the page and resize:
    • Above the breakpoint: confirm desktop menu and hover submenus
    • Below the breakpoint: confirm mobile toggle, overlay, and tap-to-open submenus
  5. Confirm the current page is highlighted in the menu.

Navigation Block HOWTO


Troubleshooting

  • No menu appears:
    • Ensure a Menu is selected in the block settings
    • Verify the selected Menu has items in Appearance → Menus
  • Overlay toggle not visible on mobile:
    • Set Overlay Mode to Mobile Overlay or Always Overlay
    • Ensure Show on Mobile is enabled and breakpoint is appropriate
  • Can’t hide the menu entirely:
    • Both visibility toggles off still render the block as a safety fallback; use theme visibility controls or CSS to hide if needed
Contributors: ShawnTurple
Prev
In Page Navigation
Next
Auto Anchor