Jump to content
Sign in to follow this  
j0emv

PlatformPro and Multisite Header/Footer

Recommended Posts

j0emv

Hi, I am using platformpro as the theme for my site I'm building. We are a school and have: 1) Public facing website 2) Password protected logon social network portal using buddypress. Our teachers will have blogs within the password protected site and I was wondering if there is any way to statically set the header and footer in multisite to use the main sites' header and footer? I would like all "subsites" to look and feel cohesive and feature the same header, footer and theme. Essentially what we'll have is a parent portal that is integrated into the whole experience. Let me know if there's any way to do this. Thanks

Share this post


Link to post
Share on other sites
cmunns

It should do this automatically. BuddyPress pages should only change the actual content portion of your site.

Share this post


Link to post
Share on other sites
j0emv

Well yes and no. What I'm saying is that I am running wordpress multisite 3.1 and my teachers will all have their own blogs or "sites". I'd like to keep the headers and footers exactly the same throughout all the sites in my network. Or at the very least, if I can set global navigation across all sites, so that all sites use the same navigation bar that will help a lot. I'm not concerned about the header images themselves because they do not change often, if at all. I'm concerned about changing links on menus and having to do that across 100 different sites. I'd like to be able to make changes to the main sites header, navigation or footer instead of having to make changes to all sites in my network to achieve a cohesive look and feel. Let me know if this is a possibility.

Share this post


Link to post
Share on other sites
j0emv

Yes, I actually have tried inserting code before and after the nav using the pagelines hooks but still am unable to see the main site's navigation on the "sub-sites". Maybe I'm doing something wrong but I followed the documentation on using hooks, inserted the code:

// Keeps consistent, global navigation menus across multisite blogs
		add_action('pagelines_before_primary-nav','add_global_nav_wpmu');
	
		function add_global_nav_wmpu(){?>
	
		<?php switch_to_blog(1);?>
	
		<?php }
	
		add_action('pagelines_after_primary-nav','remove_global_nav_wpmu');
	
		function remove_global_nav_wmpu(){?>
	
		<?php restore_current_blog();?>
	
		<?php }
	

Any ideas where I'm going wrong?

Share this post


Link to post
Share on other sites
cmunns

Try adding `global $switched;` just before the switch_to_blog function.

Share this post


Link to post
Share on other sites
j0emv

I tried that but maybe I'm missing something somewhere. All I want is to keep a consistent header, navigation and footer on my multisite sites. All of our sites in multisite should feel cohesive with the main site. If I make changes to the main site, the "sub-sites" header, navigation and footer should be linked to the main so that I won't have to change the sub-sites individually. We are a school and each teacher will have their own blog (site). They're all going to look and feel the same. Let me know if this is at all possible.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×