Title: Common header menu links
Last modified: August 19, 2016

---

# Common header menu links

 *  [Rick](https://wordpress.org/support/users/rick71/)
 * (@rick71)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/common-header-menu-links/)
 * I have just converted a single blog site to a multi site. The theme is shared,
   and the menus written in the theme header file works, except that all links on
   the new blog now contain a pointer to the new blog. Is there a way to have a 
   common header menu with links that are the same for all blogs?
 * I am very new to WordPress (a month) and know know nothing about php programing.
 * any and all help appreciated.

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

 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/common-header-menu-links/#post-1815336)
 * Yes, and we’ve posted about this before, right here in this very forum. 🙂
 * hardcode it is one option.
 * using the switch_to_blog function is another, but it pull the actually links 
   from whatever blog you set (usually the main)..
 * Remember, each site is a silo of its own content – you’re running your own version
   of wordpress.COM.
 *  Thread Starter [Rick](https://wordpress.org/support/users/rick71/)
 * (@rick71)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/common-header-menu-links/#post-1815373)
 * Thanks for the reply.
 * I have no idea what the switch_to_blog is.
 * I tried a search. Lots of them, in fact. Can you point me to some workable keywords
   to search, or some topic titles/ids?
 * Again, thanks.
 *  Thread Starter [Rick](https://wordpress.org/support/users/rick71/)
 * (@rick71)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/common-header-menu-links/#post-1815385)
 * Hard coding the links seems to work. Is it possible to set a variable to an http://
   path in the header and use that instead of hard coding the path in every link
   I need to go to the main site?
 *  [David Sader](https://wordpress.org/support/users/dsader/)
 * (@dsader)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/common-header-menu-links/#post-1815402)
 * `<?php echo network_home_url(); ?>`
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/common-header-menu-links/#post-1815409)
 * > I have no idea what the switch_to_blog is.
   > I tried a search. Lots of them, in fact. Can you point me to some workable 
   > keywords to search, or some topic titles/ids?
 * Dammit. Now I’m positive the search here is broken.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 10 months ago](https://wordpress.org/support/topic/common-header-menu-links/#post-1815427)
 * [http://codex.wordpress.org/WPMU_Functions/switch_to_blog](http://codex.wordpress.org/WPMU_Functions/switch_to_blog)
 * I use google.
 *  Thread Starter [Rick](https://wordpress.org/support/users/rick71/)
 * (@rick71)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/common-header-menu-links/#post-1815437)
 * <?php echo network_home_url(); ?>
 * Seems to work after some very cursory testing.
 * Thank you very much.

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

 The topic ‘Common header menu links’ is closed to new replies.

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 7 replies
 * 4 participants
 * Last reply from: [Rick](https://wordpress.org/support/users/rick71/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/common-header-menu-links/#post-1815437)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
