Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,005
- How-to & Troubleshooting
- 129,528
- Creating & Extending
- 25,790
- Requests & Feedback
- 9,496
- Third Party Plugins
- 9,784
- Showcase
- 3,316
- Ideas
- 1,397
- Miscellaneous
- 9,170
-
have a look here: https://codex.buddypress.org/developer-docs/conditional-template-tags/
there’s some examples as well.
so you could do something like this:
if( bp_is_blog_page() ) {
include( 'blog-header.php' ); // include this file on blog pages
} elseif( bp_is_directory() ) {
include( 'dir-header.php' ); // include that file on directory pages
} else {
get_header(); // otherwise use our normal header
}
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS