A custom navigation block with mega menu functionality.
This plugin provides a custom navigation block with mega menu functionality. It is in an experimental state and has been tested with twenty-twenty-four and twenty-twenty-five themes.
Provides a custom breakpoint to display mobile or desktop view. Custom desktop and mobile CSS files can be attached to this breakpoint to be loaded as inline styles.
Any blocks can be added to mega menu items: groups, columns, images, buttons, etc.
First level navigation supports the custom Mega Menu block, plus:
- 'simple-mega-menu/mega-menu-item',
- 'core/navigation-link',
- 'core/buttons',
- 'core/search',
- 'core/social-links',
- 'core/home-link',
- 'core/site-title',
- 'core/site-logo',
- 'core/shortcode'
Doesn't use jQuery and provides a minimal usage of Javascript to custom CSS variables such as mega menu items height, scrollbar width, header height, etc.
Provides minimalistic styles and scripts. Styles and scripts should be added by the user.
Simple Mega Menu Nav block cannot be added outside the header area.
Open your terminal and navigate to the plugins folder of your local WordPress installation. Replace /path/to/wordpress
with the actual path to your WordPress installation.
cd /path/to/wordpress/wp-content/plugins
Use the git clone
command to clone the simple-mega-menu repository into the plugins folder.
git clone https://github.com/seangoogoo/simple-mega-menu.git
This will create a new folder named simple-mega-menu in the plugins directory.
Change into the newly created plugin directory:
cd simple-mega-menu
Install dependencies using npm or yarn. Make sure Node.js and npm are installed on your machine.
You can check by running:
node -v
npm -v
If they are installed, install the dependencies:
npm install
I you want to modify or improve functionalities or design, run:
npm start
And modify the source code in your favorite editor.
Go to your WordPress admin panel (https://www.your-site.com/wp-admin or your local site’s URL). Navigate to Plugins, locate the Simple Mega Menu plugin, and click Activate.
- Fix block not loading in the editor while plugin loaded in a theme that is not a child theme
- Fix deprecated use of mb_convert_encoding() function
- Added support for 100% width mega menu items relative to a parent element using the 'relative' property
- Right arrow icon for Mega Menu buttons arrow
- Added support for 'core/shortcode'
- Provide option to auto-close other mega menu items when one is open on mobile menu
- Auto-close opened burger menu and mega menu items when changing from mobile to desktop
- Add a list view in the mega menu nav block,
- Add color customization for the mega menu item arrow,
- Check compatibility with several Full Site Editing themes,
- Manage internationalization (actually, hard-coded in French),
- Add ARIA attributes on important elements,
- Create a custom icon for the nav block.