Skip to:
Content
Pages
Categories
Search
Top
Bottom

Show specific content on profile page only


  • smuda
    Participant

    @smuda

    hey everyone,

    really starting to love this forum, i’m really getting a lot of feedback on here.

    got a question:

    i have stuff in my global footer which should only be seen on profile pages.

    i thought i could use

    <?php if ( bp_is_page( BP_MEMBERS_SLUG ) ) : ?>

    but that only works on domain.tld/members/ not on domain.tld/members/username/

    does anyone have an idea how to do that?

    thanks!

    jochen

Viewing 2 replies - 1 through 2 (of 2 total)

  • Jan M.
    Participant

    @jotem

    You could try the following:

    global $bp;
    if($bp->current_component == BP_XPROFILE_SLUG){
    //Your code here
    }


    smuda
    Participant

    @smuda

    thanks a lot jan, that did work :D

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show specific content on profile page only’ is closed to new replies.
Skip to toolbar