Skip to:
Content
Pages
Categories
Search
Top
Bottom

Check if is a specific profile screen.

  • @enderpal444

    Participant

    I need a conditional check that will let me check between profile screens.

    For instance I set up a custom nav item called “articles” which has its own screen at http://mysite.com/exampleuser/articles. So how I can use a condition to see if I’m on this screen specifically?

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

    Moderator

    `if ( bp_is_current_component( ‘articles’ ) )`

    if you are on a sub tab item like the edit profile screen you use action

    `if ( bp_is_current_action( ‘edit’ ) )`

    @enderpal444

    Participant

    Ohhh. I didn’t know I was actually creating a component just by adding a new nav. Thx @modemlooper!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Check if is a specific profile screen.’ is closed to new replies.
Skip to toolbar