I’m looking into a way to have global menus across my network of blogs. Basically I am using wordpress as a CMS – the purpose of the network is actually to ringfence content. The sub blogs will be able to customise some areas of the template – but I would like them to share the main site’s menu system.
This is easy enough for a static consistant menu – but my clients would like to be able to make changes to the menu on the main, top-level site using wordpress’ built in custom menu system.
So – in short, can my sub sites in a blog network show the custom menu from my top level site?
Thanks
That’s an old question, if someone like me landed on this page for WORDPRESS MULTISITE MENU sharing across all network sites without any plugin,
Not only menu you can use the same method to share anything other then widgets across all the network sites.
here is the solution : Edit your Header.php
//store the current blog_id - Use this function at the start of the function that you want to share
global $blog_id;
$current_blog_id = $blog_id;
//switch to the main blog which will have an id of 1
switch_to_blog(1);
//output the WordPress navigation menu - incase of menu-sharing use this
wp_nav_menu(
//add your arguments here
);
//switch back to the current blog being viewed - before ending of the function
switch_to_blog($current_blog_id);