I want the main site's header and footer template to work across a multisite

So I am using the below approach; I thought it would just work. Does anyone know how to achive this?

<?php
do_action( 'bricks_body' );
do_action( 'bricks_before_site_wrapper' );

switch_to_blog( '1' ); 	//switch to the main site of the network (it has ID 1)			
do_action( 'bricks_before_header' );
do_action( 'render_header' );
restore_current_blog();	//switch back to the current site
?>
1 Like

any help please? this really would be handy to get working

I have achieved this by using multisite conditionals (Is main site/ is not main site), and Mischa’s multisite crossposting plugin
(WordPress Multisite: Shared Content Between Sites) which allows you sync the template across to subsites.

Here is the example of the site I ended up creating:
Main Site

Subsite: