SoftIcon Mega Menu
v1.3.1SoftIcon · 2026年11月1日 上架
Add mega menus to the Navigation block in block themes. Design each dropdown panel in the Site Editor with any blocks.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 627
- 最近更新
- 2026年11月20日
贡献者
截图
SoftIcon Mega Menu adds a Mega Menu item to the Navigation block of block themes like Twenty Twenty-Five. Each item opens a large panel that you design in the Site Editor with the blocks you already know: columns of links, images, buttons, even a product grid.
Classic mega menu plugins work with the old Appearance Menus screen, which block themes do not use. This plugin is made for the Navigation block.
How it works
- Open your header in Appearance Editor, select the Navigation block, click its +, then Add block, and choose Mega Menu.
- In the block settings, under Panel, pick a design and click Create panel.
- Click Edit this panel in the Site Editor and change its text, links and images, or design it with any blocks.
- Back in the header, type the item’s text and save.
You can also add a design to any panel from the Site Editor: Inserter Patterns Mega Menu.
Already have a menu? Select a link in it, click the first icon in the toolbar and choose Transform to Mega Menu. The link keeps its text and address.
Panels are template parts in their own Mega Menu area, so you can reuse one panel in several menus.
Video guides
How to create a mega menu, step by step (2:16):
The Help panel in the block settings links to this guide, and so does the Panel section until you choose a panel. The quick tour (0:32) is at the top of this page.
Features
- Mega Menu item for the Navigation block
- Panels designed in the Site Editor with any blocks
- 5 ready-made panel designs: links in columns, shop with a featured photo, services with a call to action, latest posts, promo
- Create, choose and edit panels right from the block settings, with a short how-to in the Help panel
- Turn any menu link into a mega menu (and back) with Transform, keeping its text and link
- Open on hover or on click
- Panel width: content, wide, full screen or a custom width
- Panel position: centered on the screen, or lined up with the menu item
- Panel always stays inside the screen
- Space above the panel, padding, rounded corners, shadow, background and text colors
- Optional link on the menu item text, with a small arrow that opens the panel
- Phones: the panel opens inside the Navigation block’s phone menu, or the item just goes to its link
- Keyboard friendly: Enter or Space opens a panel, Escape closes it, Tab out closes it
- Preview the panel in the editor
- Works without JavaScript too: the panel opens on hover and keyboard focus
- Small script with no dependencies, about 2 KB
Source code
The JavaScript and CSS in the build folder are compiled from the human-readable source in the src folder, which is included in the plugin. To build it yourself, run npm install and then npm run build in the plugin folder. The build uses @wordpress/scripts.
External services
The plugin does not connect to any external service. The Help panel in the block settings has plain links to a video guide on YouTube and to WordPress.org, which open in a new tab only when you click them.
Libraries
The plugin does not bundle any third-party library. Its scripts use only the packages that come with WordPress (@wordpress/blocks, @wordpress/block-editor, @wordpress/components and others), loaded from WordPress itself. The settings panel helpers in src/vendor/softicon-tools are our own code, released under the same GPLv3 or later license as the plugin. All icons were drawn for this plugin.
Images
The two photos in the panel designs come from the Twenty Twenty-Five theme and are in the public domain (CC0):
- Botany flowers, https://www.rawpixel.com/image/8812207 (assets/images/botany-flowers.webp)
- Northern Buttercups, https://www.rawpixel.com/image/8802603 (assets/images/northern-buttercups.webp)
A panel made from a design links to these photos inside the plugin folder. Replace them with your own images.




