• I am using WordPress 3.1 and I just started using the network feature.

    I want all of my sites to have the same look/theme so they all look like they are part of one big site. The problem I am running into is the navigation should be the same for ALL the sites but as it works currently, each site has its own menus. This would be a major pain to update the navigation and footer navigation, as I plan to frequently.

    Is there a way I could use the network feature and still have one primary navigation? Or should I consider a different approach to my website?

Viewing 8 replies - 1 through 8 (of 8 total)
  • I use this code in a plugin for stuff like that. What I would do is add either a footer navigation or header navigation. the problem with the header nav is that wp already has a navbar if the user opts for it in the dashboard.

    i activate it network wide but it works on both single install or network.

    function the_wp_header_html () {
    echo ‘
    <style type=”text/css”>
    // style up your navigation
    </style>
    ‘;
    }
    function the_wp_footer_html () {
    echo ‘Add your HTML, Javascript, PHP, or other code’;
    }
    add_action (‘wp_head’,’the_wp_header_html’);
    add_action (‘wp_footer’,’the_wp_footer_html’);

    OR are you talking about Menus (where you would edit the Menu from inside the main blog) and each user theme only supports the main site’s Menu?

    are you talking about Menus (where you would edit the Menu from inside the main blog) and each user theme only supports the main site’s Menu?

    that’s exactly what he means.

    this requires some fudging, as multisite is *multiple independent sites*.

    Yes, you can eventually do this, but it is not built in.

    Thread Starter n8paul

    (@n8paul)

    Yes @andrea_r!

    Yes, you can eventually do this, but it is not built in.

    Could you elaborate on this?

    Here is a testing site

    Hover over “Explore” (top nav) and see all of the colored links in that drop-down – these are set up as different “sites.”

    that’s exactly what he means.

    figured.

    – you can hardcode it right in the theme, which means manually updating a theme file when you want to add a menu item.

    – you can wrap the nav menu in a switch_to_blog(1) function to grab the nav menu from blog1 & spit it out.

    But this gets expensive. Fine for small networks, not so much for larger ones.

    Thread Starter n8paul

    (@n8paul)

    Thanks to you both.

    @andrea_r – I have already hardcoded this navigation into the theme but that is totally going to suck when I come across updating. Especially if I create 10 sites within my network, ugh.

    Is there another way to get multiple blogs under one wordpress install without using “the network”? I just need to be able to post content to 10 separate topic areas… Maybe I should just consider using the categories instead?

    Thanks for holding my hand ??

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    @andrea_r – I have already hardcoded this navigation into the theme but that is totally going to suck when I come across updating. Especially if I create 10 sites within my network, ugh.

    If you only have ONE theme to update, it’s not so bad.

    If you have multiple themes, you COULD insert a php include and pull in an external file with the code you need…

    I just need to be able to post content to 10 separate topic areas… Maybe I should just consider using the categories instead?

    categories or tags yes.

    the only reason you would use multisite for this is if you:

    – needed separate admin areas
    – needed a different theme for each section

    otherwise, stick to single.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘One Navigation (menu) for all sites’ is closed to new replies.