title: How to show primary menu of main site throughout multi-site network
body: <p>I have managed to switch the primiary navigation menu of my subsites to show the main site primary navigation.</p>
  
  <p>However, it renders above the site-header instead of in the menu location dictated in the code.</p>
  
  <p>Here is the code I currently have:</p>
  
  <pre><code>    function wp_multisite_nav_menu() {
      global $blog_id;
  }
      if ( ! is_multisite() || 2 == $blog_id ) {
  
      switch_to_blog( 1 );
  
      wp_nav_menu( array(
          'menu'              =&gt; 2,
          'fallback_cb'       =&gt; false,
          'menu_class'        =&gt; 'genesis-nav-menu',
          'theme_location'    =&gt; 'Primary Navigation Menu',
  
      )); 
  
      restore_current_blog(); 
  
  }
  </code></pre>
  
  <p>I was expecting the menu to be placed in the 'Primary Navigation Menu' location.</p>
  
  <p>What have I missed?</p>
  
  <p>Any clarity is appreciated.</p>
  
  <p>UPDATE</p>
  
  <p>I managed to figure it out for my primary and secondary menus however how do get the site title to change to the main site title and hyperlink?</p>
  
  <p>Here is the code I currently have minus the site title switch</p>
  
  <pre><code>//*Multisite global menus
  
  //*Primary global menu
  add_action('genesis_after_header', 'primary_menu_switch');
  function primary_menu_switch() {
      global $blog_id;
      if ( ! is_multisite() || 2 == $blog_id ) {
      switch_to_blog( 1 );
  
      wp_nav_menu( array(
          'menu'              =&gt; 2,
          'fallback_cb'       =&gt; false,
          'menu_class'        =&gt; 'genesis-nav-menu',
          'theme_location'    =&gt; 'primary'
      ) );
  
      restore_current_blog(); 
  }
  }
  
  
  //*Secondary global menu
  add_action('genesis_header_right', 'secondary_menu_switch');
  function secondary_menu_switch() {
      global $blog_id;
      if ( ! is_multisite() || 2 == $blog_id ) {
      switch_to_blog( 1 );
  
      wp_nav_menu( array(
          'menu'              =&gt; 17,
          'fallback_cb'       =&gt; false,
          'menu_class'        =&gt; 'genesis-nav-menu menu-primary responsive-menu',
          'theme_location'    =&gt; 'primary'
  
          ));         
      restore_current_blog(); 
  }
  }
  
  //*Use main site title
  
  function site_title_switch() {
      global $blog_id;
      if ( ! is_multisite() || 2 == $blog_id ) {
  
      switch_to_blog( 1 );
  
  
  
     restore_current_blog();  
  
  }
  } 
  </code></pre>
  
  <p>I am a complete novice so please excuse the hack job.</p>
  
  <p>Your insights are appreciated.</p>