Title: Multisite shared menus
Last modified: August 31, 2016

---

# Multisite shared menus

 *  [Jason](https://wordpress.org/support/users/zushiba/)
 * (@zushiba)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/multisite-shared-menus/)
 * Hi all, I’m looking for some direction.
 * I’m working on a multi-site installation and I’d like to be able to selectively
   use menus from another site in a widget similar to the Custom Menu widget.
 * Does this plugin exist?
 * I am aware of this [https://wordpress.org/plugins/multisite-shared-menu/](https://wordpress.org/plugins/multisite-shared-menu/)
   but it’s super limited, it only allows for you to share the main nav menu (_which
   isn’t my issue_).
 * I have some menus that exist in the footer area of my site that’ll be shared 
   across all multisites and I would rather be able to edit those menus in the main
   sites menu editor rather than have them hardcoded as HTML sitting in the theme
   folder or something and included in some manner.
 * I expect the menus to change often enough that editing them by hand would become
   annoying quickly.
 * What I’m envisioning is a version of the Custom Menu widgit that allows me to
   select a different site on the network and then select a menu from that site.

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Fabio Fiss](https://wordpress.org/support/users/fabiofiss/)
 * (@fabiofiss)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/multisite-shared-menus/#post-7283398)
 * Hey Jason,
 * If you are familiar with PHP and are comfortable with changing the code you could
   use a function to get the menu from the first site (or blog).
 * There’s a function called switch_to_blog. I’ve used it before for this exact 
   situation and it works very well.
    [https://codex.wordpress.org/Function_Reference/switch_to_blog](https://codex.wordpress.org/Function_Reference/switch_to_blog)
 * I tried looking for a plugin for this type of functionality, but could not find
   it.
 * If you need any further help, please let me know.
 *  Thread Starter [Jason](https://wordpress.org/support/users/zushiba/)
 * (@zushiba)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/multisite-shared-menus/#post-7283586)
 * I figured this would need to be a custom job. I’m attempting to copy the current
   menu widget and add this functionality.
 * Thanks for the help.
 *  [efromdc](https://wordpress.org/support/users/efromdc/)
 * (@efromdc)
 * [10 years ago](https://wordpress.org/support/topic/multisite-shared-menus/#post-7283673)
 * Jason, Im in the same boat as you. Im trying to modify the code so that when 
   it pulls the menu from the master site, it changes all menu links so that they
   include the multsite name in the link.
 * So if the master is the root of your domain:
    wordpress.com/menu-item
 * and you have a multisite name called “apples” and another called “oranges”? The
   menus change so that when they are pulled in, they become:
 * wordpress.com/apples/menu-item
    wordpress.com/oranges/menu-item
 * That way, you can alter one main site and the change goes into effect for the
   entire multisite network.
 * If you’ve already solved this? Inbox it to me >> contact at myusername dot com
   <<
 *  Thread Starter [Jason](https://wordpress.org/support/users/zushiba/)
 * (@zushiba)
 * [10 years ago](https://wordpress.org/support/topic/multisite-shared-menus/#post-7283675)
 * Hmm, that mail bounced so I’ll respond here. I did manage to solve my menu issue.
   After a LOT of googling and copy/pasting code from various examples and doing
   a lot of reading of the WordPress codex. I was finally able to get a working 
   widget that let me pull in any menu from any site on the network and use it on
   any other site.
 * You can find the code here [http://pastebin.com/bc2mXb4v](http://pastebin.com/bc2mXb4v)
 * I plan to work on this further so this is a pretty early (and VERY ugly) copy.
 * It lacks nice features like automatically populating the menus dropdown in the
   widget when you select a parent site for the menu. So you have to hit save after
   every operation before it’ll populate the dropdown.
 * Also it has some issues working with that widget that I linked above. Using the
   multisite-shared-menu plugin with this will render this one inoperable.
 * Also it has not been tested extensively yet so I don’t know what other bugs may
   be lurking.
 * I believe (_I could be wrong_) that if you code your custom menus correctly to
   just append the value, that it’d show up the way that you’re looking to do. I
   can’t be sure though and I’m not in my office so I can’t test it at the moment.
 *  [efromdc](https://wordpress.org/support/users/efromdc/)
 * (@efromdc)
 * [10 years ago](https://wordpress.org/support/topic/multisite-shared-menus/#post-7283676)
 * Jason, Whats your email? I have a solution…
 *  Thread Starter [Jason](https://wordpress.org/support/users/zushiba/)
 * (@zushiba)
 * [10 years ago](https://wordpress.org/support/topic/multisite-shared-menus/#post-7283677)
 * zushiba at gmail.com
 *  [atomystik](https://wordpress.org/support/users/atomystik/)
 * (@atomystik)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/multisite-shared-menus/#post-8380268)
 * Hi Jason and Efrom, I’ll be interested to know your solution.
    Thank you Thomas

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Multisite shared menus’ is closed to new replies.

## Tags

 * [menu](https://wordpress.org/support/topic-tag/menu/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)
 * [widgit](https://wordpress.org/support/topic-tag/widgit/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 7 replies
 * 4 participants
 * Last reply from: [atomystik](https://wordpress.org/support/users/atomystik/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/multisite-shared-menus/#post-8380268)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
