Simple Slideout Menu
Modern, mobile friendly slideout menus: off-canvas, hamburger and full-screen panels built from your WordPress menus, with a visual live editor.
Install in
Simple Slideout Menu adds a modern, mobile friendly slideout menu to any WordPress site. Visitors tap a hamburger or menu button and a navigation panel slides in from the side, or fills the whole screen. It is the off-canvas menu pattern used by most modern websites and apps, and it works on phones, tablets and desktops.
Every panel shows one of your existing WordPress menus, so you keep managing links where you always have, in Appearance Menus. There is no page builder to learn and no code to write.
Use it to:
- Replace a crowded header menu with a clean hamburger menu on mobile.
- Add a responsive menu to a theme that has no good mobile navigation.
- Offer separate panels, for example a shop menu, an account menu and a help menu, each with its own button.
- Show different menus to logged-in and logged-out visitors.
- Build a full-screen menu overlay for a portfolio or landing page.
Two modes
The plugin has two modes. You choose one in Slideout Menu Dashboard, and you can switch at any time without losing anything.
- Modern mode (recommended for new sites): as many panels as you like, each with its own menu, design, layout and trigger button, designed in a visual editor with a live preview.
- Classic mode: one slideout menu, styled in the WordPress Customizer. Sites that used version 1.x stay in Classic mode after updating and keep working exactly as before.
Modern mode features
Visual editor with live preview
- See every change instantly in a live preview of the panel and its button.
- Preview at desktop, tablet and mobile sizes.
- Preview hover, current-page and open states before you publish.
- Save without leaving the page. A clear message tells you when changes are saved.
Layouts
- Sidebar: a panel that slides in from the left or right, with an adjustable width.
- Full screen: a menu that covers the whole screen, with the menu placed left, center or right and top, middle or bottom.
- Custom size: choose the exact width and height.
- Cover or push: the panel can slide over the page, or push the page aside like a mobile app. On phones it can fall back to covering the page.
Submenus
- Accordion: child links open in place under their parent.
- Drill-down: child links open as a new screen with a Back button, ideal for deep menus on small screens.
- Choose the open and closed icons, their colors and size, and the Back button’s label and icon.
Design
- Colors for the panel, text, links, submenus, dividers, buttons and the dimmed background, all with transparency.
- Separate hover and current-page styles for links, including color, background, size and weight.
- Font size, weight, letter case, alignment, line height and spacing.
- Corner radius, shadow size and shadow color.
- Optional header with your logo or a heading, and an optional footer text.
Trigger buttons
- Block themes: add the Slideout Menu Button block to your header in the Site Editor, or add a link to the panel inside the Navigation block.
- Classic themes: add a panel’s button to your site navigation from Appearance Menus, with no code.
- Anywhere else: use a shortcode, for example
[simsm_trigger id="123"], in a page, a post, a widget or a page builder, or link any button to#simsm-v2-123. - Built-in icons (menu, user, cart, grid, search and more) or your own SVG icon. Uploaded SVG files are cleaned of anything unsafe before they are stored.
- Show the icon, the text or both, with your own colors, padding, corner radius and hover style.
Visibility
- Show each panel on desktop, tablet and phones, or only on some of them.
- Show a panel to everyone, only to logged-in visitors, or only to logged-out visitors.
- Hide individual menu links from logged-in or logged-out visitors.
Behavior
- Dim the page behind the panel, with adjustable dimming.
- Close the panel when visitors click outside it or click a link.
- Stop the page from scrolling while the panel is open.
- Turn a panel on or off without deleting it, duplicate a panel to try a new design, or delete it.
Classic mode features
- One slideout menu shown in the Slideout Menu menu location.
- A hamburger button via the shortcode
[simple_slideout_menu]or a menu item. - Panel position (left or right), width, background and shadow.
- Link color, hover color, size, weight, letter case and decoration.
- Colors and sizes for the hamburger and close icons.
- Hide the menu on desktop, tablet or mobile.
- Close the menu when visitors click outside it.
- All settings are in Appearance Customize Slideout Menu, with a live preview.
- Works in block theme headers through the Slideout Menu Button block.
Accessible
Modern panels are built to be used with a keyboard and screen readers:
- The panel opens as a dialog. Keyboard focus moves into it and stays inside it while it is open.
- Escape closes the panel and returns focus to the button that opened it.
- Buttons announce whether the panel and each submenu are open or closed.
- A closed panel is fully hidden, so its links are skipped when tabbing through the page.
- Animations are turned off for visitors who prefer reduced motion.
Lightweight and private
- Small, plain CSS and JavaScript files. The Modern panel script has no dependencies.
- No external requests, no fonts or scripts from other servers, no tracking and no data collection.
- Works with classic themes and block themes (Full Site Editing), including the Site Editor and the Navigation block.
- On sites that only use Modern panels, the Classic menu’s files (and jQuery) are not loaded.
Settings reference
Panel editor tabs (Modern mode)
Content tab
- Menu: the WordPress menu shown in the panel, and how submenus open (accordion or drill-down).
- Header: show or hide the header, add a logo from the Media Library, and set a heading. Without a logo or heading, the panel name is used.
- Footer: show or hide a short footer text, such as a phone number or opening hours.
Style tab
- Panel: background, text color, focus outline color, corner radius, and shadow on or off with its size and color.
- Menu links: normal, hover and current-page colors, backgrounds, sizes and weights; alignment; letter case; link spacing; space around the menu; line height; divider line color.
- Submenu links: text and background color, font size, and indent per level.
- Submenu button: icons when closed and open, icon size, and normal, hover and open colors.
- Back button (drill-down only): label, icon, font size, and normal and hover colors.
Layout tab
- Size and position: panel shape (sidebar, full screen or custom), which side it opens from, and its width and height.
- Full-screen menu: horizontal and vertical position of the menu and its maximum width.
- Page behavior: cover the page or push it aside. For push mode, set the page wrapper (the element that contains your whole site,
#pageby default) and whether phones should cover the page instead. - Visibility: which devices show the panel, and who can see it (everyone, logged-in or logged-out visitors).
- Closing and scrolling: dim the page and how much, close when clicking outside, close after a link is clicked, and stop the page scrolling while open.
Trigger tab
- Add the button to your site: the panel’s shortcode and a shortcut to the Menus screen.
- Button content: show the icon, choose it (or upload your own SVG), show the text, and set the button text.
- Button style: normal, hover and panel-open colors, padding, corner radius, font size and weight.
Classic mode Customizer settings
These settings style only the Classic panel. In Modern mode the Customizer section is shown only while a menu is still assigned to the Slideout Menu location; Modern panels are designed in Slideout Menu Panels.
Panel: background color, position (left or right), maximum width (any CSS length, such as 311px, 80% or calc(100% - 40px)), close when clicking outside, box shadow, and shadow color.
Menu: link color, hover color, font size, text decoration, letter case and font weight.
Close Icon: color, hover color and size.
Hamburger Icon: color, hover color and size.
Visibility: hide on desktop, tablet or mobile.
Device sizes
- Desktop: 1025 pixels wide and wider.
- Tablet: 768 to 1024 pixels wide.
- Phone: narrower than 768 pixels.
For developers
Block
- Slideout Menu Button (
simple-slideout-menu/trigger): attributespanel(a panel ID, orclassic) andlabel(optional button text). Rendered on the server, so it always matches the panel’s current design.
Links
- Any link whose address ends in
#simsm-v2-{ID}opens that panel, including Navigation block links. Navigation links to a panel that is turned off or hidden from the visitor are removed, as in classic menus.
Shortcodes
[simsm_trigger id="123"]: the button for a Modern panel. Optionallabelattribute overrides the button text. Renders nothing if the panel is turned off, hidden from the current visitor, or the site is in Classic mode.[simple_slideout_menu]: the hamburger button for the Classic panel.
JavaScript API (Modern mode)
SimsmPanels.open( id ): open a panel by its ID.SimsmPanels.close(): close the open panel.SimsmPanels.refresh(): re-check panel visibility, for example after changing the layout with JavaScript.
Classic template and hooks
- Copy
templates/slideout.phptoyour-theme/simple-slideout-menu/slideout.phpto change the Classic panel markup. - Filter
SIMSM_templatechanges the path of a template file. It receives the path and the template name. - Actions
before_simple_slideout_menuandafter_simple_slideout_menurun before and after the Classic menu, for example to add a search form or contact details.
Styling with CSS
Classic panel: #simple-slideout-menu-panel (with .open while open, and .left or .right), its menu ul.slideout-menu, and the submenu toggle .child-menu-toggler.
Modern panels: each panel is wrapped in .simsm-v2-root with the panel itself in aside#simsm-v2-{ID}.simsm-v2-panel, and the wrapper gets .is-open while open. Buttons use .simsm-v2-trigger (shortcode) and .simsm-menu-trigger (menu item). Most design settings are exposed as CSS custom properties on the wrapper, such as --simsm-bg, --simsm-text and --simsm-accent.
Written by Joobi from the project's own listing. See the source page
2.1.0
- New: Modern mode with multiple slideout panels, each using its own WordPress menu. Classic mode is unchanged and remains the default for existing sites.
- New: visual panel editor with live preview, device sizes, and hover and active state previews.
- New: sidebar, full-screen and custom-size layouts; push-the-page mode; full-screen alignment and width.
- New: accordion or drill-down submenus with configurable icons and Back button.
- New: colors with transparency.
- New: trigger buttons for classic menus and the
[simsm_trigger]shortcode, with built-in or custom SVG icons. - New: block theme support. A Slideout Menu Button block for headers and templates (Modern panels and the Classic menu), and Navigation block links to
#simsm-v2-{ID}. - New: per-panel device and logged-in/logged-out visibility, and per-menu-item visibility.
- New: panel on/off switch, duplicate and delete.
- Improved: Customizer settings in Classic mode are now validated when saved and when printed. Every value that is valid CSS keeps working, including calc() widths, named colors, hsl() colors, decimal sizes and bold weights.
- Improved: the Customizer preview now updates when you change a Classic setting, and the Customizer shows the same defaults your site uses.
- Fixed: a closed Classic panel wider than 500px no longer covers part of the page and blocks clicks.
- Fixed: keyboard users no longer tab into the links of a closed Classic panel.
- Fixed: on block themes, the Classic “Slideout” menu item copied into the Navigation block showed as “{slideout_menu}” text. It now shows the hamburger button and opens the menu.
- Improved: in Modern mode, the Classic Customizer section and the Classic menu’s files are only loaded while a menu is assigned to the Slideout Menu location.
- Improved: plugin data is removed when the plugin is deleted.
- Requires WordPress 5.4 or later.
1.3.1
- Previous stable release.
Follow this listing's changes (Atom feed)