Add a global menu to your network
When I released it there were quite a few people hoping that it added/output a new menu on the sub sites. I’ve written a bit of code that allows you to do that. What needs to be done to use the NWM for a new menu is
- Register a new menu across the network
- Make sure that menu is registered before the regular menus are registered on the sites. This ensures that the new global menu is the first menu slot on all sites.
- Hide the global menu admin on the sub sites so users do not attempt to populate it with items that will never be shown
- Add the menu to the themes across the network
You can accomplish the first 3 items with the following:
The best place to have that code is in a small plugin in the mu-plugins folder. The earlier this code executes the better.
Now all you need to do is add the menu output to your theme and style it appropriately in each theme: