generatepress icon indicating copy to clipboard operation
generatepress copied to clipboard

Elements - add hook option for a navigation menu item's sub menu to allow creation of mega menus with GB

Open eastriverstudio opened this issue 3 years ago • 2 comments

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

eastriverstudio avatar Dec 13 '22 00:12 eastriverstudio

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.

SchneiderSam avatar Dec 13 '22 09:12 SchneiderSam

@eastriverstudio we will look into adding this filter.

JeanPaiva avatar Dec 13 '22 14:12 JeanPaiva