bbPress

Simple, Fast, Elegant

bbPress support forums » Themes

Wordpress Theme Integration - Conditional Header

(3 posts)
  • Started 8 months ago by schmitt
  • Latest reply from schmitt
  • This topic is not resolved

No tags yet.

  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.

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

    Posted 8 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.