Hey gang.
My client has a business with 3 different sections, each with its own set of pages. I’m looking for a way to add menus dynamically to the Secondary Menu area depending on which area of the site they are viewing. It would be great to do this as an Element using the inside_secondary_menu hook but there’s one problem…. If I don’t manually assign a menu to the Secondary Menu area then it won’t show at all and no dynamic content is visible.
Is there a way to ‘force’ a secondary menu area to be visible even when empty?
All I can think is to add a dummy menu with display:none as CSS, or maybe a Menu with ‘Contact’ button. But maybe there’s a more elegant GP hook I could use? Maybe is there a way to replace existing content in the Secondary Menu hook with my dynamic content?