WordPress.org

Ready to get started?Download WordPress

Forums

Using header and footer from master theme in childthemes (8 posts)

  1. cavamondo
    Member
    Posted 3 years ago #

    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?

  2. David Sader
    Member
    Posted 3 years ago #

    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.

  3. 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.

  4. cavamondo
    Member
    Posted 3 years ago #

    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?

  5. 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.

  6. David Sader
    Member
    Posted 3 years ago #

  7. cavamondo
    Member
    Posted 3 years ago #

    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

  8. cavamondo
    Member
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.