Support » Networking WordPress » Parent Menu

  • Resolved devincox


    I have a multisite setup and want to use the menu from my main site, on all the other sites. I am using the following to accomplish this:

    <?php switch_to_blog(1); ?>
    right after the navbar code put
    <?php restore_current_blog(); ?>

    However, is there any way to use the above mentioned method but have the pages referenced by the menu wrapped in the template of the child site?


Viewing 11 replies - 1 through 11 (of 11 total)
  • No, because the pages are going back to the main site, which has it’s own theme.

    I’m trying to figure out a way to use the menu from my main site on all of my multisite sites, but still get the person browsing the site back to the respective child site once they are done viewing the information on the main site. Any ideas or even a term to search on?


    I call that the ‘Back’ button, personally.

    Why not just duplicate the pages on the subsites?

    I’m going to be creating a thousand or more of these sites I’m trying to keep the size down and the management at a minimum.
    ie. When I need to make a change to one of the pages/posts, I don’t want to have to make 1000 changes.

    What are these pages you’re linking to?

    pages on my main site. Company information, product information, training, shopping cart, forms etc..

    You could put in a javascript controlled ‘back’ button, but … realistically, you’re asking ‘How to I make two separate sites with separate data and different designs have the same content?’

    Either use the same theme for all your sites, or trust your visitors will understand the different layout.

    What you want to do can’t be done. Separate sites are separate.

    I’ve been doing this for years in coldfusion, I just recently switched to WP (and love it). I just passed a session var and that way I could keep track of which site my visitors came from and send them back (via overriding the home button) and also give credit for any purchases. The problem is WP doesn’t handle work well with session vars, at least that’s my understanding at this point.

    No, it’s that WordPress separates your data differently. Or at least MultiSite does.

    You can (should be able to) use sessions in WP:

    WordPress considers each and every site to be intentionally separate from each other. There is no cross contamination of content. Go look at and see how every site is totally separated? That was the goal.

    Why are you using MultiSite for this? Do you really need all these sites to be totally separated?

    “Why are you using MultiSite for this?” .. I asked that question myself in this forum.

    I don’t need the entire site separate, just pieces of it. Like the personal info of the site owner, their contact info, a contact form. The shopping cart is a common cart on the main site and so is the product and company info. I also need the ability to use sub domains for each site.

    Eeeh, yeah, that is one of those cases where MultiSite makes more sense than not, but it’s not going to be an easy implementation.

    Well let’s see. If I absolutely had to have the same data on multiple sites, but styled differently, I would see if I could use includes. That is, make the pages on each site (yes, each of the 1000) but then use a plugin to pull in the text from a file on my server via a shortcode or something smiliar.

    You could make the shortcode in your mu-plugins, and then [about-foobar] and [contact-us] or whatever you needed.

    Then, if you used a plugin like Replicator (which is pay-for) you can duplicate a theme when you make new ones, so they come with those things built in.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Parent Menu’ is closed to new replies.