BuddyDev

Search

[Resolved] Hide settings navigation tab: “Account-settings” with css?

  • Participant
    Level: Initiated
    Posts: 10
    Amanda on #47290

    Hi, I am new to coding and css. Thanks in advance for any help

    Is there a way to do a css: display: none for the account settings navigation tab? I tried and it is hiding the entire settings menu.

    I want users to have access to the other tabs such as profile settings, etc.

    Thanks again

  • Keymaster
    (BuddyDev Team)
    Posts: 24599
    Brajesh Singh on #47297

    Hi Amanda,
    Welcome to BuddyDev.

    If you don’t need account settings, I will suggest disabling it in BuddyPress settings.

    You can visit Dashboard->Settings->BuddyPress and under “Components”, you can untick ”
    Account Settings” and save.

    That is the correct way to disable account settings.

    If you only want to hide it and not disable it, you may use the following css

    
    
    #settings-personal-li,
    #wp-admin-bar-my-account-settings {
     display: none !important;
    }
    
    

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 10
    Amanda on #47303

    Thanks a lot. I did try that and got a critical error. But, I realized it was because I had a functions code snippet that was already blocking account settings. Corrected that and it works!
    Thanks for the help!

  • Keymaster
    (BuddyDev Team)
    Posts: 24599
    Brajesh Singh on #47325

    You are welcome!

The topic ‘ [Resolved] Hide settings navigation tab: “Account-settings” with css?’ is closed to new replies.

This topic is: resolved