Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] If statement to only use certain bit of code on site activity feed?

  • @jameshh93

    Participant

    Hi i have some code in my header.php (a sidebar info block) that I only want dispalying if the user is on the main sitewide acvitity page only. Does anyone have a nice if statement to put my code in that will doe this?

    ?? Please help.

    thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • @henrywright

    Moderator
    if ( bp_is_activity_directory() ) {
        // This is the activity dir.
    } else {
        // This isn't the activity dir.
    }

    That should be what you need.

    @jameshh93

    Participant

    Thank you!!! have a great day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar