Skip to content

Snippet: Display A Global Menu For Your Multi-Site Network

The following snippet can be used to display the menu from your primary site in a multi-site network across all your sites. Simply add the code to your site then log into the main site and select the menu for your "Main" menu location and it should display on all sub-sites.

add_filter( 'totaltheme/header/menu/multisite_check', '__return_true' );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top