You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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-submenu but core/navigation-submenu uses the useInnerBlocksProps so 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.js Edit function and add filter for core/navigation-submenu block. 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
The text was updated successfully, but these errors were encountered:
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 ?
core/navigation-submenu
but core/navigation-submenu uses theuseInnerBlocksProps
so can't able to manage the allowedBlock attribute value by filter so variation didn't work.wp-content/plugins/gutenberg/packages/block-library/src/navigation-submenu/edit.js
Edit function and add filter forcore/navigation-submenu
block. 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
The text was updated successfully, but these errors were encountered: