Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to determine if a BP-generated page is being shown

  • @wcastillo

    Participant

    Hello,

    i’ve installed BP and ran the BP Compatibility Theme Pack plugin which worked like a charm.

    However, I’d like that my bp pages to look slighty different than my wordpress’. As BP is using the page.php I would like to modify that file to change some settings if the page that is currently being shown belongs to BP or WP.

    Something like:

    If ( in_bp() ) {
    // do these things
    } else {
    // Do these other things.
    }

    Which function should I use for this?

    All best,
    Will

Viewing 3 replies - 1 through 3 (of 3 total)
  • @crashutah

    Participant

    Interesting question. I’m not sure there’s an overall is_bp() type of function that you can call. You might have to list all the specific BP components. Or maybe it’s easier to say it’s not a WP blog.

    @wcastillo

    Participant

    Hello,

    Yes, I think I saw a is_bp() over there… but if my memory servers, it just tell if BP is installed or something like that. I’m not versed in BP thought (although I’m pretty confident with my knowledge of WP).

    Can you please give a clue on how to get the BP components installed in a given installment of BP?

    Thanks in advance,
    Will

    @nahummadrid

    Participant

    bp_is_blog_page() = your WP pages for the most part.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to determine if a BP-generated page is being shown’ is closed to new replies.
Skip to toolbar