WordPress.org

Ready to get started?Download WordPress

Forums

Dual Navigation Menu (4 posts)

  1. Peja
    Member
    Posted 3 years ago #

    I will be setting up a MU site for multiple users, I would like to 2-part navigation menu.
    The primary part would be the main menu for the entire network (the same menu on all sites). The secondary menu would be just the menu for that site.

    Is there a plugin I can easy do this with?

  2. no.

    Just do it in your theme.

  3. Peja
    Member
    Posted 3 years ago #

    Thank you for the reply, what text would I put on my theme to allow both menus across the network?

  4. Have you ever worked with themes before?

    you need to go look at the header.php file and look at the menu code. Copy it to get a second one. Put a switch_to_blog function aroudn it.

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic