Design System is here - Read the release post

Learn GeneratePress

GeneratePress

Off-Canvas Panel

The off-canvas panel is a menu and widget area that slides in from the side, or covers the whole screen, when its button is clicked. It replaced the old Slideout Navigation in GP Premium 1.8.

Requires GP Premium — Menu Plus module. The whole guide is a GP Premium feature; the menu item height control also needs the Spacing module.

Settings: Appearance → Customize → Layout → Off Canvas Panel

Menu: Appearance → Menus → Display location Off Canvas Menu

Widgets: Appearance → Widgets → Off Canvas Panel

Settings

Turning it on

  1. Create a menu and assign it to Off Canvas Menu (theme locations).
  2. Set Off Canvas Panel to:
    • Mobile only — the panel replaces the mobile menu. Useful for long menus, especially with a sticky navigation on mobile.
    • Desktop only — adds a button to the desktop navigation that opens the panel.
    • On — both.
    • Off (default).
  3. Optionally set a Desktop Toggle Label to show text beside the desktop button.

Style, side and close button

  • Style — Slide (default) slides the panel in from the side; Overlay covers the whole screen. With Overlay, click Set Overlay Defaults to apply suitable colours and fonts; change them later in Colors → Off Canvas Panel and Typography.
  • Side — with Slide, open from the Left (default) or Right.
  • Close Button — Outside (default) or Inside the panel.
  • Menu Item Height (Spacing module) — the height of menu items in the panel. Empty by default, so it uses the Primary Navigation height.

Off-canvas widget area

The panel has its own widget area: Appearance → Widgets → Off Canvas Panel. Widgets show below the menu — or on their own, if you leave the Off Canvas Menu empty.

Use the off-canvas menu only

To show only the off-canvas button on desktop, with no regular menu items:

  1. Assign your menu to Off Canvas Menu.
  2. Create an empty menu and assign it to Primary Menu.
  3. Set Off Canvas Panel to Desktop only or On.
  4. Place the button with Navigation Location.

See also Header example 1.

Empty panel?

If the panel opens with no menu items, check that a menu is assigned to Off Canvas Menu in theme locations.

All options

SettingSectionChoicesDefaultRequiresCustomizer option
Off Canvas PanelOff Canvas PanelMobile only · Desktop only · On · OffOffGP Premium — Menu Plusgenerate_menu_plus_settings[slideout_menu]
Desktop Toggle LabelOff Canvas PanelText (shown when the panel is on)—GP Premium — Menu Plusgenerate_menu_plus_settings[off_canvas_desktop_toggle_label]
StyleOff Canvas PanelSlide / OverlaySlideGP Premium — Menu Plusgenerate_menu_plus_settings[slideout_menu_style]
SideOff Canvas PanelLeft / RightLeftGP Premium — Menu Plusgenerate_menu_plus_settings[slideout_menu_side]
Close ButtonOff Canvas PanelOutside / InsideOutsideGP Premium — Menu Plusgenerate_menu_plus_settings[slideout_close_button]
Menu Item HeightOff Canvas Panel20–150 pxInherits Primary NavigationGP Premium — Menu Plus, Spacinggenerate_spacing_settings[off_canvas_menu_item_height]

Settings can be changed in code with the option_generate_menu_plus_settings filter.