9

I don't want this "My Account" menu item in my Community:

screen shot of offending menu

This post from Igor Androsov uses CSS to remove it:

.myAccount{
  display: none;  
}

but that no longer seems relevant in LWC-based Communities. I don't see any Community builder configuration to remove it.

Is there a way?

2 Answers 2

4

I may be wrong here, as I have never worked on communities, but how was

.myAccount{ display:none; }

working before. When i inspect element in my community page, i see each menuitem written as home uiMenuItem, profile uiMenuItem. Though I cannot see My Account as I dont have certain permissions.

enter image description here

But I went ahead and from advanced setting of community builder edited the Head Markup to put this css.

<style>
    .profile.uiMenuItem{
      display: none;  
    }
</style>

And it hides the My Profile section from the menu, May be if you can change the profile to whatever class name account has, that might work.

1
  • The CSS selector that I found by inspection is .profile-menuItem.myAccount and that worked. Thank-you!
    – Keith C
    Nov 26, 2020 at 8:39
0

This worked for me:

<style>
    .profile.uiMenuItem{
      display: none;  
    }
    .myAccount.uiMenuItem{
        display: none;
    }
</style>

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .