Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Details About the New Theme Architecture


Detective
Participant

@detective

The code is spreaded through many bp template tags, like:

function bp_get_profile_header() {
load_template( TEMPLATEPATH . '/profile/profile-header.php' );
}

Since TEMPLATEPATH always point to the parent theme, currently if someone uses a custom theme, then it’s impossible to use those template tags. Not a big deal, almost always it’s possible to write a copy of the function and load the correct file.

If I remember correctly, there is a function named locate_template that first looks into the child theme, and then into the parent.

Skip to toolbar