Hey @JlambleyPPT ,
I wouldn’t amend the json file directly because that’s where the customizer options are saved. What I would do is
- Create 3 menus.
- Corporate Menu
- Shop Menu
- Hidden menu that includes pages that should show corporate menu (or vice versa) It’s only hidden because it’s not shown on the frontend, there’s no special hide feature.
Let’s say hidden menu has pages that are corporate related
I would amend the schema inside header.liquid to add the option of selecting 2 menus in the customizer Shop Menu (menu_shop) and Corporate Menu (menu_corporate)
Then when rendering the menu I would do an if statement to check if current page is in the hidden menu, if it is, then variable menu = menu_corporate, else variable menu = menu_shop and then the menu rendering part will automatically take care of the rest.
You could also drop the 3 menu idea and just check if the current page is in corporate menu directly, but the idea of having the live menu’s and the control menu sometimes is nice, because then you have a place to do the “on/off” seperately, and then another to show on the frontend.