5

I built a Community with the Napili Template. Now I want to hide "My Profile" and "My Account" (under "Home") from the "Profile Header" component's picklist. How can I do that? I searched a solution and someone suggests to modify the community's css, but where can I find and modify the CSS?

  • I think this earlier q&a covers this salesforce.stackexchange.com/questions/158173/… - just want to test it works with current version of napili – Dave Humm May 8 '17 at 14:08
  • I'm not an expert of custom lightning component and that picklist contains the logout functionality and I'm not feeling confident to override it. If I found a custom component out of the box maybe would work with some adjustment. What do you think? – L.benedettini May 8 '17 at 14:43
8

If you select the appropriate scope in your CSS, you can hide options in the Profile Header component:

For the profile menu option:

.profile.uiMenuItem{
    display: none;
}

You can modify the CSS under the branding options enter image description here

However, this will affect all your users.

If you would prefer this to change based on profile (your admins might want to be able to access profiles easily) You might want to use Custom Theme Layouts, the feature is documented here

| improve this answer | |
  • This works for "My Profile" but what about "my account"? I can't seem to make that one disappear. – denvergreene Dec 20 '19 at 22:50
0

For the My Account menu option:

.myAccount.uiMenuItem{
    display: none;
}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.