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, 2017 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? May 8, 2017 at 14:43

2 Answers 2


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

For the profile menu option:

    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

  • This works for "My Profile" but what about "my account"? I can't seem to make that one disappear. Dec 20, 2019 at 22:50

For the My Account menu option:

    display: none;

You must log in to answer this question.

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