Elements - add hook option for a navigation menu item's sub menu to allow creation of mega menus with GB
I've had a few requests for more elaborate mega menus lately and I'm always loathed to install an extra plugin and I don't love the popular mega menu plugin options available anyway.
It got me thinking it would be great if there were a way to handle this with GP & GB using Elements. I'm thinking something similar to the existing menu_bar_items hook to allow us to hook an Element block into a specific menu item's sub menu so we could create a custom mega menu layout using GB. For reference, Kadence has done something similar already using its own hook system and default WP menu, but I know this could be even better done the GP way using Elements :)
Thanks
GP and GB really need a better menu solution. Related:
- https://github.com/tomusborne/generatepress/issues/412
- https://github.com/tomusborne/generateblocks/pull/734#issuecomment-1298163591
I think the best way is to work with Gutenberg. This is the future.
@eastriverstudio we will look into adding this filter.