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 / How can I edit the por...
Power Pages
Answered

How can I edit the portalbasictheme.css, it says that it`s not supported for editing?

(0) ShareShare
ReportReport
Posted on by 520

Robert94_0-1655725368474.png

What is a workaround for this?

Categories:
I have the same question (0)
  • PaulJSwider Profile Picture
    152 on at

    You can edit the Portal CSS using the Portal manager. The last I heard editing  portalbasictheme.css is not supported. Perhaps you could hack it using the portal manager. Let us know what you find.

    Microsoft has been slow to allow basic web stuff like a modern version of Bootstrap or . CSS editor as they want people building components.  Â¯\_(ツ)_/¯

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

    Hi @Robert94  

     

    The best recommendation is to use custom CSS. 

     

    Here is how you can achieve this 

     

    https://docs.microsoft.com/en-us/power-pages/training-videos/#add-custom-styling 

     

    NB: Do not modify any pre-built themes. Always use the custom CSS 

     

     

    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.

     

  • Robert94 Profile Picture
    520 on at

    Can you please tell me why I shouldn`t modify any prebuilt themes from microsoft, it`s illegal or?

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

    Sure @Robert94 

     

    It is not the best practice to edit the prebuilt themes as this will cause a significant crash on the site. You can always make a copy of prebuilt themes and modify them. Eventually, this will be your custom CSS 

     

    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.

  • Verified answer
    Fubar Profile Picture
    8,463 Super User 2026 Season 1 on at

    @Robert94 wrote:

    Can you please tell me why I shouldn`t modify any prebuilt themes from microsoft, it`s illegal or?


    Because you will come in one day and all of your changes will be missing because a Portal update has been performed (with or without your knowledge) and the 'pre-built' files that are not indicated for editing have been replaced with new versions or refreshed with a new copy of the existing.

     

    Also, if overwriting existing Styles always remember to include the "!important" directive to force your style to override the ones pre-defined.

  • NN-05020459-0 Profile Picture
    Microsoft Employee on at

    When you use power pages studio theme functionality, it auto generates these files. And if you are making any changes here there will be a high chance that it will be overwritten. 

     

    You can refer to the following document for guidelines for adding custom stylings. 

    https://docs.microsoft.com/en-us/power-pages/training-videos/#add-custom-styling

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!

Leaderboard > Power Pages

#1
Suriyanarayanan V Profile Picture

Suriyanarayanan V 15

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 7 Most Valuable Professional

#3
Fubar Profile Picture

Fubar 6 Super User 2026 Season 1

Last 30 days Overall leaderboard