How to add a checkbox to the menu item in WordPress backend that says "Make this a Mega Menu Container"? In my mind it should look something like this (Photoshop draft): enter image description here

And when the box is checked instead of adding another standard ul > li DOM element a div container is added instead?

I have no idea how to approach this. I was planning to use walker to change the DOM for the menu, but how to "activate" the walker only for some menus - in this case the menus that I choose by that checkbox to be the mega menu?

  • So your first question is how to identify specific menu, which depends on how do you imagine this bit of custom data will be stored? – Rarst Jan 17 '14 at 21:36

OK this one is solved. I actually created a separate items that can be dragged in as a link, but are actually hard coded pieces of markup with adequate classes.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.