Skip to:
Content
Pages
Categories
Search
Top
Bottom

Need userbar only on logged-in user's profile

  • Avatar of tsalagi_red
    tsalagi_red
    Participant

    @tsalagi_red

    I am trying to redesign the standard bp theme to take up less screen real estate. I have removed the userbar from most pages and only want it on the logged-in users profile page.

    You can check out what I am trying to do by visiting http://thegermainetruth.net/members/admin

    Any php people out there who can give me some advice on what code might work to do this.

    Thanks

Viewing 1 replies (of 1 total)
  • Avatar of John James Jacoby
    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Using the bp_is_home function, well return back a true/false whether or not you are viewing your own profile.

    if ( bp_is_home() ) {
    // do what you want
    }

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.