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 / Power Pages stops reco...
Power Pages
Unanswered

Power Pages stops recognizing CSS after change

(1) ShareShare
ReportReport
Posted on by 2

I had been using custom css files and making changes to them fine, but now every time I make a change to any css file, when I sync and preview the change, the entire css file is no longer recognized by when viewing the page in browser. 

 

The only workaround I have found in reuploading the same css file under a different name, then it will be recognized again, but as soon as I make another change, same issue occurs and only way to see it is reuploading again.

 

I tested making a small change to the bootstrap.min.css file and the same issue occurred with that file too where after a change and save, the file stopped being recognized and I had to reupload the file as a custom css for bootstrap classes to be recognized again.

 

Why is this happening and what can be done to fix it?

 

Thanks,

Gary

Categories:
I have the same question (0)
  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @garyF 

    What is the custom CSS file name? Reading from your problem. Are you using the file name "bootstrap.min.css?" 

    If so you may need to change the file name like "custom.css" 

     

    Tip: Make sure your custom CSS file path is set to "Home" 

     

    Hope it helps.
    ------------

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

     

  • Richard Mayo Profile Picture
    40 on at

    I can confirm this is happening also.

    We have a file 'custom.css'. If its a fresh upload, it works fine, but as soon as you make a change to the file (i.e add or remove a line) and re-save its no longer recognised and none of the css becomes active.

    Its only just started to happen in the last 2-3 days.

  • Saud Ali Profile Picture
    812 Super User 2024 Season 1 on at

    @richardmayo - I know it's not a good solution. But I was facing the same issue how it worked for me was to change filename every time I made changes. Can you give it a try?

     

    If this works for you, we can open a ticket with Team.

     

    Thanks,

    Saud

     

    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.

     

  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @garyF  @richardmayo  @saudali_25 

     

    I have tested this functionality. Here is the result 

     

    Background change for the text field multistep form. 

     

    ragavanrajan_0-1693221876139.png

     

     

     

     

     

    here are the steps 

    In design studio: 

    1.  Styling > Themes> Three dots > upload a new file called "custom.css" 

     

    ragavanrajan_2-1693222269716.png

     

    2. Add your CSS style 

    3. Sync 

    4. To update the CSS, Select the file "Custom.css" > Three dots > Edit in Code 

     

    ragavanrajan_3-1693222319646.png

     

    5. Add your styles. Hit "Ctrl + s" VSCode will ask you to override the existing CSS file 

     

    Overriding the CSS & Output 

    ragavanrajan_1-1693222171914.png

    Hope it helps.
    ------------

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

     

     

  • Saud Ali Profile Picture
    812 Super User 2024 Season 1 on at

    @ragavanrajan thanks for sharing. You're a rockstar.

  • Richard Mayo Profile Picture
    40 on at

    Hi @ragavanrajan 

     

    Thanks for the suggestion. Those are the exact steps I have been following but its still not working.

     

    What I found interesting is that the file appears to load fine, I can see it in the Developer Tools on the browser and I can see the HTML link has been added to the head, but it just doesn't appear to be accepting any of the CSS code itself.

     

    Something else ive noticed, is that in VSCODE, its not asking me to override the file. It just saves.

  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @richardmayo 

     

    Can you switch your environment to "Enhanced data model "  and give a try please 

     

    ragavanrajan_0-1693307416308.png

     

    Once enabled, try a hard refresh (Ctrl+ f5) in the design studio. 

     

    Hope it helps.
    ------------

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

     

  • Richard Mayo Profile Picture
    40 on at

    My understanding is that does not change any existing sites to 'enhanced'

    It would also be a big change for a production site like ours, esspecially since its still in 'preview'

  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    @richardmayo 

     

    Please do not try in production. Only in the dev environment. I am trying to figure out where the bug exists.

     

     

  • lwdt_osh Profile Picture
    12 on at

    I am having the same issues with the custom.css file not being applied to the power portal. It's only started happening today on our site. Has anyone found an fix?

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 49

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 28 Most Valuable Professional

Last 30 days Overall leaderboard