Info
- 3 posts
- 2 voices
- Started 4 years ago by schmitt
- Latest reply from schmitt
- This topic is not resolved
WordPress Theme Integration - Conditional Header
-
- Posted 4 years ago #
I'm hoping this is straightforward. I've integrated BBpress and WordPress at a theme level - ie reusing header and footer. What I would like to do is display different information (such as a link to a user profile) in the header only when a bbpress page is being displayed. Is there a conditional variable I can check with php that would allow me to do this? Which global variable? Thanks.
-
- Posted 4 years ago #
global $bb; if( isset( $bb ) ) { //... } -
- Posted 4 years ago #
Works like a charm. Thanks fel, you do yeoman's work here.
-
You must log in to post.