-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
[Block] NavigationAffects the Navigation BlockAffects the Navigation Block[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Description
Why we need ?
enhancing the core/navigation-submenu block to allow for the creation of mega menus within the Navigation Block.
Many websites feature extensive navigation menus with numerous links, often requiring linear menus that limit the number of items per row. This restricts the flexibility of design and organization. By expanding the capabilities of the core/navigation-submenu block to accommodate more inner blocks, users will have the ability to construct mega menus. This enhancement will enable users to categorize links more effectively and provide greater freedom in customizing the visual layout of the menu.
What need to update ?
- Can create variation of the
core/navigation-submenubut core/navigation-submenu uses theuseInnerBlocksPropsso can't able to manage the allowedBlock attribute value by filter so variation didn't work. - Update
wp-content/plugins/gutenberg/packages/block-library/src/navigation-submenu/edit.jsEdit function and add filter forcore/navigation-submenublock. also can remove default block or move default block from edit function to block.json ( ref: Allow setting defaultBlock in navigation block #52610 ) -
Enhancement outcome:
Megamenu.mp4
jackmakesthings and iServU
Metadata
Metadata
Assignees
Labels
[Block] NavigationAffects the Navigation BlockAffects the Navigation Block[Type] EnhancementA suggestion for improvement.A suggestion for improvement.