Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] How to remove "view" button from profil ?


  • nate22
    Participant

    @nate22

    the view button
    This may seem trivial, but I’m working with a network group which is not the most internet savvy and that view button is going to disturb them. Once they figure it out, they will still complain about it.

    Here is what I am expecting:

    “Okay, I understand why I need the ‘view’ and ‘edit’ buttons for my own profile, but what if I’m viewing Roxanne’s profile? I don’t understand why the ‘view’ button is there if there’s no ‘edit’ button. I can’t edit Roxanne’s profile, right? Only Roxanne can see the ‘edit’ button on her profile if she’s signed in. So, why do I need the ‘view’ button there if I’m already viewing Roxanne’s profile? It’s confusing. Please remove that.”

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

  • danbp
    Moderator

    @danbp

    Try by adding this to child-theme style.css

    #public-personal-li { display: none; visibility: hidden; }


    nate22
    Participant

    @nate22

    Thanks… that’s interesting! I suspect the logged in user view is #private-personal-li or something so it will still be there when you’re editing your own profile, right?


    danbp
    Moderator

    @danbp

    This item is context dependant and can not be removed like other sub_nav items.

    Normally you should use bp_core_remove_subnav_item( 'profile', 'the-tab-to-remove' );


    nate22
    Participant

    @nate22

    I did your first suggestion and I see how it works. Doesn’t really to be there, so I’ll just hide it that way. Profiles look much cleaner now without the second line that just says “view.”

    Thanks again!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] How to remove "view" button from profil ?’ is closed to new replies.
Skip to toolbar