Forums

Join
bbPress Support ForumsThemesWordPress Theme Integration - Conditional Header

Info

Tags

WordPress Theme Integration - Conditional Header

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

  2. global $bb;
    if( isset( $bb ) ) {
    //...
    }
  3. Works like a charm. Thanks fel, you do yeoman's work here.

  4. You must log in to post.