You could use the switch_to_blog()
function
Switches the active blog until the user calls the
restore_current_blog() function. This function is useful if you need
to pull posts, or other information, from other blogs, you can then
switch back after using restore_current_blog(). Using this function
will not load plugins that only run on the blog you switch to.
So you can edit your theme to always pull some header and footer content from the main blog, but still keep the inner content of the sub blogs.
In you theme’s header.php and footer.php files ( and maybe some other template files** ), put switch_to_blog($id_of_main_blog)
before hooks/functions that grab the site navigation and place restore_current_blog()
after.
**You will need to tweak the exact placements depending on the theme.
Related Posts:
- multisite: global menu containing network site links?
- Converting a theme to a child theme in a network
- how can I add an icon/image for a child theme?
- How to set permalink structure via functions.php
- WooCommerce shop page to use my custom template [closed]
- My child theme doesn’t work Error: “The parent theme is missing. Please install your parent theme”
- Child Theme vs Duplicate Theme Renamed
- Hide a div that is part of all pages on one specific page
- How to add Color Picker in Theme Options for the following?
- Adding Action Hooks In Parent Theme For Easier Child Theme Customization
- How to edit bbPress template files – WordPress + BuddyPress + bbPress? [closed]
- Best practices – Should I create a child theme vs. customizing a framework theme? (such as HTML5 reset)
- Add colors to existing color palette without replacing it
- Child Theme not loading parent CSS
- add generated stylesheet from parent theme after child-themes style.css
- add_image_size is scaling, even though crop is set to true
- date_i18n() issue
- Change Genesis Tag from Page Template [closed]
- How do I get my child-theme to work with my theme’s includes folder?
- How do I get a parent theme modification from a child theme?
- CSS in child theme not overriding the parent theme [closed]
- Modifying JS files in Child-theme
- Optimal solution to develop a wordpress theme?
- When developing a distributable Theme, does it HAVE to be “inheritable”?
- Nesting Functions within Functions
- Should I update my _s theme?
- Create a theme by combining a parent and a child theme
- How to keep my custom theme changes after updating genesis child theme
- De-registering parent style sheet css recommended?
- Where is the correct place(s) in twentysixteen’s header.php to add a Google webfont?
- Can I customize any WordPress parent block-based theme template files by child theme like a parent classic theme?
- Display site admin profile fields in header.php
- Can a child theme based on Starker theme be released as free to use theme for public use?
- How to test for MU via functions.php?
- Override Constants in Child theme
- Same footer on all multisites blogs
- Excluding a page with a certain name from wp_page_menu
- Changing order title and featured image in blog post (Astra theme)
- Loading files for theme and child theme (Require)
- how can I remove the sidebar from my wp homepage [closed]
- Unhook action from child theme
- Does any theme support child theme?
- Am I supposed to create a child theme for every theme I use?
- How can I disable/hide certain themes in multisite?
- Child themes: disabling the parent
- How to Edit the style of header title of Twenty Eleven Theme?
- How to remove a file included in parent theme with locate_template() via child theme?
- Can’t override template file in child theme
- Child theme style.css versioning
- Change the template of multiple multisite pages at the same time
- Cannot figure out how to overwrite files in child theme
- How to add theme support?
- Removing non native customizer settings from a child theme
- Is it a bad practice to use switch_to_blog in the frontend?
- Link to a .po file in a child theme
- Alias to theme folder for local development
- Inheritance of parent theme plugin files in a child theme
- Divi Child Theme not appearing in “Themes” [closed]
- Override template file i subfolders
- Theme Development for WordPress Multisite Installation
- What happens to child theme if I change to new version of parent theme?
- Include Parent functions.php in Child Theme functions.php
- WordPress empty Nav Menu error
- Injecting a custom sql query into a page/theme
- How to create a custom template to admin dashboard
- Select full Image Size on widget “Genesis – Featured Posts”
- How to first edit in local WordPress editor on page and the add code?
- Custom Field created in add_meta_boxes reappearing itself again in the default Custom Metabox
- Child theme enqueue scripts using new functions
- Why is it needed to enqueue parent stylesheet in child theme?
- changing blog title to an image using filter function in child theme
- Can´t access child theme´s scripts dependencies found in parent
- Show woocommerce categories on my theme menu styling
- How to override p2 breathe theme plugin in content template file?
- Child Theme’s style.css not loading in mobile browser
- Acivate all themes multisite wide automatically
- Is it possible to make *.js and folders visible in theme-editor
- Question regarding WP multisite feature
- add_filter to parent theme helper class function from child theme
- How to properly create a child theme
- Replace function in a child theme
- Can’t remove DIV from hooks in Storefront child theme [closed]
- Renaming a theme so it aids SEO and the theme used is hidden
- Featured Image meta box not showing up
- filemtime(): stat failed warning within a child theme
- Overrite parent functions using child functions
- How can I override a require() used in functions.php of parent theme to my child theme
- Derive child theme from separate theme
- Child Theme header1.php file not overwriting parent theme’s header1.php file
- Need help with adding templates (archives and sitemap) to WordPress child theme
- Where do files uploaded via Media Manager get stored in MU?
- Using a starter theme vs starter theme with child theme
- Will my site get messed up when the wordpress theme updates if I edited the html code in the editor to change footer?
- How to create and populate with few links a menu in child theme functions.php?
- How to correctly enqueue the parent and child theme stylesheets in the creation of a child theme? [duplicate]
- Create a child theme from multiple themes
- Overide enqueue in non plugable function via child theme
- Why would changing a child theme to a normal theme pass a Template is missing. error
- Starting point for custom Themes [closed]
- Simple child theme modification but links are broken