Linux 软件免费装
Banner图

SoftIcon Mega Menu

开发者 softiconai
更新时间 2026年11月24日 08:51
PHP版本: 7.1 及以上
WordPress版本: 7.1
版权: GPLv3 or later
版权网址: 版权信息

标签

menu mega menu navigation block block theme

下载

1.0.0 1.1.0 1.1.1 1.2.0 1.3.0 1.3.1

详情介绍:

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. https://www.youtube.com/watch?v=wESHej61hmw How it works
  1. Open your header in Appearance → Editor, select the Navigation block, click its +, then Add block, and choose Mega Menu.
  2. In the block settings, under Panel, pick a design and click Create panel.
  3. Click Edit this panel in the Site Editor and change its text, links and images, or design it with any blocks.
  4. 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): https://www.youtube.com/watch?v=XEJpAu02Gew 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 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): A panel made from a design links to these photos inside the plugin folder. Replace them with your own images.

安装:

  1. Upload the plugin and activate it, or install it from Plugins → Add New.
  2. Use a block theme (Appearance → Editor).
  3. Edit your header, select the Navigation block and add a Mega Menu item.

屏幕截图:

  • Panel settings in the block editor
  • Width, position and style settings
  • The panel inside the phone menu
  • Ready-made designs in the Site Editor: Patterns → Mega Menu, and Design in a panel's settings

常见问题:

Does it work with classic themes?

No. Panels are template parts, which need a block theme. Classic themes can use a classic menu plugin.

Where do I find my panels?

The Panel list in the block settings shows them all and links to the chosen one. They are also in Appearance → Editor → Patterns → Mega Menu, where you can rename or delete them.

Where did Appearance → Mega Menus go?

Version 1.3.0 removed that page, so the plugin is a pure block that can be installed right from the editor. Everything it did is in the block settings: pick a design, create a panel, choose it and open it in the Site Editor. Your panels and menus are not changed.

Where is Appearance → Menus?

Block themes have no Menus screen; menus are made with the Navigation block in Appearance → Editor. Mega Menu items go inside that Navigation block.

The panel opens too high, on top of my header

The panel opens right under the menu item. If your header is taller, use Space above in the Style tab to move it down.

What happens on phones?

When the Navigation block turns into a phone menu, the panel opens under its item inside that menu. With a link on the item you can choose Go to link instead, then the item is a normal link on phones.

I switched themes and my panels are gone

Template parts belong to a theme. Switch back to see them, or copy the blocks into new panels in the new theme.

Need help?

Ask in the support forum or email softiconai@gmail.com. Feature ideas are welcome.

更新日志:

1.3.1 1.3.0 1.2.0 1.1.1 1.1.0 1.0.0