web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Portal- custom css for...
Power Pages
Unanswered

Portal- custom css for profile page not working

(0) ShareShare
ReportReport
Posted on by 7,044 Most Valuable Professional

Hi Guys, 

 

 One of the thing I wanted to achieve is to hide a particular section in profile page. Using my browser dev tools I got the proper class name. 

 

.crmEntityFormView .section-title {
display: none;
}

 

The above is the css where it is working on my browser dev tool but not on the `custom css` part. 

 

1. Portal > Web pages > Profile > Advanced > Custom css> I have added my css there. 

 

Annotation 2020-08-26 124459.png

 

Is this the right way of doing it or is there any other place? Can any one please help on this. 

Categories:
I have the same question (0)
  • oliver.rodrigues Profile Picture
    9,455 Most Valuable Professional on at

    Maybe the CSS' might be conflicting, try adding !important and it might do the trick

     

    I would actually normally perform those via JavaScript instead of CSS, please refer to the following post: http://oliverrodrigues365.com/2020/07/19/power-apps-portals-javascript-tip-01-hide-show-elements/

     

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • justinburch Profile Picture
    Microsoft Employee on at

    Hi @ragavanrajan,

     

    Oliver is most likely right regarding the conflicting - you can double check by looking at your dev console and seeing if your CSS is further down in the console hierarchy and being overwritten by theme.css.

     

    While his recommendation for JS is good, sometimes it can be poor user experience when this JS loads after the page and results in the area showing and hiding briefly.

     

    You have some alternatives:

    1. Add "!important"

    .crmEntityFormView .section-title {
    display: none !important;
    }

    2. Add another aspect to your selector - now your select will be more defined and will take precedence

    .crmEntityFormView legend.section-title {
    display: none;
    }

     

    Note that if you aren't doing this from the admin panel (when signed in as a Contact with the Administrator Web Role), you will most likely need to reset your Portal cache (login as admin, navigate to /_services/about) in order to guarantee a pushed change.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 53

#2
DP_Prabh Profile Picture

DP_Prabh 40

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 28 Most Valuable Professional

Last 30 days Overall leaderboard