Navigation Block with Mega Menu

描述

这个 WordPress mega menu 插件可以让你在古腾堡建立特制的网站导航菜单。

注意: 这个 WP 导航块是为 WordPress 的全站编辑体验而设计的。在全站编辑功能实现之前,插件只能提供有限的选项,因为它不能完全集成到导航菜单中。

WordPress 导航菜单插件添加了一些免费的巨型菜单古腾堡块用于不同的目的:

  • 超级菜单块。
  • 超级菜单项目块。
  • 普通菜单。
  • 普通菜单项目块。

超级菜单项块是非常灵活的 – 它允许你添加下拉菜单,可以处理任何 WordPress 块,让你完全控制你的菜单的外观和感觉。

如何实现 WordPress mega 菜单插件:

  • 超级菜单块是一个只能处理超级菜单项目的容器,反过来,它也可以处理嵌套下拉菜单,即包含任何其他块。
  • 普通菜单块可以包含纯菜单项,这些菜单项可以与其他普通菜单项目一起处理下拉菜单。
  • 一些导航块的宽度、颜色、字体大小、布局(水平和垂直)是完全可定制的。
  • 你可以选择将 WordPress 的导航菜单转换为移动设备的“汉堡包按钮”。

搜索最好的古腾堡插件?

Check out Getwid WordPress Blocks – 一个顶级的区块和模板库的块编辑器。

版权

Navigation Block with Mega Menu, Copyright (C) 2020, MotoPress https://motopress.com/
Navigation Block with Mega Menu plugin is distributed under the terms of the GNU GPL.

贡献者

屏幕截图

安装

  1. 上传插件到 /wp-content/plugins/ 目录。
  2. 通过 WordPress 的“插件”菜单激活插件。

评价

2025 年 9 月 4 日 1 回复
Hello, thanks for creating a block based mega menu! I use this plugin in a couple of projects together with WP default themes Twenty Twenty-Five and Twenty Twenty-For and want to address some usability issues in front and backend. When creating a menu in FSE editor in a Header template part the dropdown/submenu is usually not visible when you click on a Menu Item. You have to scroll to view all items. The desired behaviour would be to see the whole submenu as shown in the WP plugin “Sreenshots” section. When you click on a Plain Menu item placed in a submenu it actually links within the Header Template to the linked page. I then see the frontend of the website within the Header Template which is apparently a bug. When I want to go back I get an error message and need to exit and re-enter the FSE editor. It would be nice to add also a menu-is-open class to body in order to make it non-scrollable when opening the menu. Currently the menu is not WCAG compatible, there are no aria attributes and you can not navigate through keyboard with TAB, Enter/Space, ESC. Thanks,Georg
2025 年 8 月 21 日 2 回复
First of all, thanks for providing a mega menu plugin that supports block themes and Full Site Editing 🙏 It would be very helpful if this plugin had a documentation page with some examples of how it should look. I tried to use it to build a mega menu, and found that the mobile version has a major usability issue : the toggle button to show the mega menu is way too small, only 20px wide. Maybe I didn’t built it correctly ? Hard to say without a demo that I could compare to. PS: I opened an issue on the github repository, with a screencapture that shows the problem.
2024 年 1 月 3 日 1 回复
Le plugin parfait pour faire des méga menu en mode Gutenberg. fonctionne vraiment bien. le Bloc “mega menu” fonctionne bien, par contre erreur sur le “plain bloc” sur la version actuelle 1.0.6
2023 年 11 月 19 日
This plugin saved the day for my plunge into building a custom block theme. The alternatives were ugly, huge mega-menu builds that are not easy to implement for a smaller site.
2023 年 10 月 15 日
Simple to use. I hope more people start using FSE/block-theme-friendly mega menu plugins. The mobile menu toggles should change to the ones from core navigation block. The “Plain Menu” block works the same as the core Nav block (did I miss something?)
2023 年 7 月 10 日
This plugin was very useful for adding a megamenu to my shop, I had to modify it a bit but the result is excellent! Definitely does not deserve this rating, keep it up guys!
阅读所有12条评价

贡献者及开发者

「Navigation Block with Mega Menu」是开源软件。 以下人员对此插件做出了贡献。

贡献者

「Navigation Block with Mega Menu」插件已被翻译至 3 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「Navigation Block with Mega Menu」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0.7, May 12 2025

  • 修正和改进了一些小问题。

1.0.6, Nov 16 2023

  • Improved compatibility with WordPress 6.4.

1.0.5, May 22 2023

  • Added the ability to change the mobile menu toggle button markup via a filter.
  • Fixed performance issues that can be caused by a large quantity of child blocks in the menu dropdown.
  • Improved compatibility with PHP 8.
  • Minor style improvements.

1.0.4, Sep 16 2022

  • Fixed an issue when the submenu icon may not be shown if the user does not logged in.

1.0.3, Aug 04 2022

  • Improved compatibility with FSE.

1.0.2, Apr 04 2022

  • Improved compatibility with WordPress 5.9.

1.0.1, Mar 22 2022

  • Fixed an issue with font sizes.
  • Added the ‘is-current’ class for a current menu item.
  • Added filers for menu item classes to the Menu Item and the Plain Menu Item blocks.

0.0.3, May 28 2021

  • Fixed an issue with additional CSS class(es).

0.0.2, Aug 04 2020

  • 修正和改进了一些小问题。

0.0.1, Jul 27 2020

  • 初始发行。