Support » Networking WordPress » display custom menu on each site

  • Hello,

    I created a custom menu called ‘mainmenu’ and insert this code to my header.php:

    <?php wp_nav_menu( array( 'menu' => 'mainmenu' )); ?>

    This menu appears on my main site and all sites and articles of my main blog. But when I switch to another blog of my multisite network, the menu disappears. Is it possible to display one custom menu on all multisite sites without creating the menu again and again for each blog?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Andrea Rennick


    Customer Care at Copyblogger Media and Studiopress

    just before the nav bar code put
    <?php switch_to_blog(1); ?>
    right after the navbar code put
    <?php restore_current_blog(); ?>
    then it will always show the pages from Blog #1.

    You are my hero 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘display custom menu on each site’ is closed to new replies.