Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Page & Category Menu Bars »

WP 3.0 custom menu in multisite


  #1  
Old Oct 13, 2010, 05:52 AM
AussiAnni
 
24 posts · Sep 2010
Adelaide, Australia
My blog is a multisite with each section of the site having different colours and header images. The top menu above the header image is created with the WP custom menu.

What I want to achieve is for this menu to be constant across all my subsite so that I don't have to recreate each menu manually each time I update something or add a new subsite.

Apparently it can be done by adding two lines of code immediately before and immediately after the nav bar code in header.php.

I found this in the WordPress forum :

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

and it worked for the person who asked the question with the theme they were using.

I am not sure where to place this code in Ata theme files as header.php calls to the functions in the new wp menu file to display the menu.

I have tried inserting this code in several different places to no avail. A couple of those attempts "broke" my blog lol.

Does anyone know how to implement this ? Maybe it's a good one for Flynn to add to the wish list for the next upgrade as more and more users(and clients) are wanting to implement similar features with multisite.
  #2  
Old Oct 13, 2010, 06:10 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you could try adding them before and after line 16 of bfa_header_config.php
no guarantees - I haven't tried it and I don't see why on a multi site you would want the other sites to have the first sites menu. That means that if you create a page in site 2, there will not be a link to in.

But, I'm sure you have your reasons, so give it a try.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Oct 13, 2010, 06:31 AM
AussiAnni
 
24 posts · Sep 2010
Adelaide, Australia
I already tried that. That's what broke the site . If you have a look at the site(the link is in my profile), you will understand why I want the subsites to have the same top menu. It is a custom menu that is the main nav for the site.

The second menu shows the categories(not a custom menu) of each subsite and any other nav links that I need I put in the sidebar using either tags or the blogroll. A bit like other major sites you see where the main nav is at the top.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Category Menu? frankenkat Page & Category Menu Bars 1 May 28, 2010 06:30 AM
[SOLVED] Custom menu ? Gimx Header configuration & styling 4 Mar 5, 2010 12:55 PM
custom images for menu bar Richie Page & Category Menu Bars 2 Jan 4, 2010 11:25 AM


All times are GMT -6. The time now is 04:49 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.