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