Support » Networking WordPress » Using header and footer from master theme in childthemes

  • Running WP3 multisite and Buddypress .. i have created a master theme wich i use on the network/superadmin blog. Then i have created other themes i use for sub-sites on the netork. Im not sure to define those subsites as childthems since im not fully aware wether they are childthemes i relation to the superadmin/netwoek admin blog, or to the buddypress default theme placed in the plugin/buddypress folder.

    However, i wish to use the header.php and footer.php from the master network theme and place them in the subsites, so that the subsistes themes kinda functions as childthemes to the theme used for the masterblog .. is this possible, to redefine the <?php get_header() ?> to fetch another header?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Im not sure to define those subsites as childthems since im not fully aware wether they are childthemes

    Check the information header of the child theme’s style.css for the line

    Template: parenttheme

    Any child theme missing its header.php will inherit the header.php from the parent theme.

    I don’t know if/how buddypress alters this default behavior.

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    I don’t know if/how buddypress alters this default behavior.

    It doesn’t.

    the themes are only child themes if you’re using most of the functionality from the parent theme.

    Parent theme is buddypress default theme, so any files missing in the theme will be substitutet with the parent files. However what im looking for is a way to replace the header.php with a header.php from another theme installed on the same level wordpress location and not use the header.php from the buddypress theme. So unless there is some sort of command i can use to go up one lvl and into another theme folder and fetch the header.php, i reckon id have to put the main theme into the buddypress theme folder.

    Is this correct understood?

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    So unless there is some sort of command i can use to go up one lvl and into another theme folder and fetch the header.php, i reckon id have to put the main theme into the buddypress theme folder.

    Is this correct understood?

    No.

    Put header.php you want to use on the child theme in the child theme folder.

    I wish to use the same hesder and footer from one theme, in some other themes on same Network Multisite – without having to re-edit all the themes headers and footers files each time i do a correction

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Using header and footer from master theme in childthemes’ is closed to new replies.