Skip to main content

Notifications

Power Pages - General Discussions
Answered

CSS Web file not active error?

(0) ShareShare
ReportReport
Posted on by 106

I tried to preview my PowerPages website and it was showing some random theme colours and fonts.

 

I created my site from a template and edited the colours.

 

In the builder view, everything displays as it should with my theme colours and design, but when I preview it does not.

 

Running the sire checker I get the following errors:

 

1000047545.jpg

 

I have deactivated and re-activated the two mentioned files, but the issue persists.

 

What could be causing this?

Categories:
  • inanoffice23 Profile Picture
    inanoffice23 214 on at
    Re: CSS Web file not active error?

    Yes, so when I do the initial code for VSC terminal 

    pac auth create -u  and the url

    Then 

    pac paportal list

     

    It seems pac portal list looks at Portal Management - Websites, so unless you add it manually, it won't show up 

     

    For some reason it created a separate page hence why VSC was never able to find it

     

    I thought it would create a portal, but it doesn't. It's like when you add a basic form in Power Pages, you have to go to Portal Management to add it or it won't show when you want to add it to the form, quirky ways!

  • elfreddos Profile Picture
    elfreddos 106 on at
    Re: CSS Web file not active error?

    Interesting, is that because the site would not load into VSC? I have that issue every time.

  • inanoffice23 Profile Picture
    inanoffice23 214 on at
    Re: CSS Web file not active error?

    lol @elfreddos you are right, that fixed the error. Mine was complaining about some site settings too which I already added. 

     

    Regarding visual studio code, I had to add the website in Portal Management so it would pick it up, and for Portal Content editor I had to tick in Xrmtoolbox the 'enable enhanced' as the new site is now enhanced, happy endings for today after all 🙂 

  • Verified answer
    elfreddos Profile Picture
    elfreddos 106 on at
    Re: CSS Web file not active error?

    Hi there, not really, although I did manage to sort it.

    However, my CSS files were always here which made it stranger.

     

    I simply changed something in the theme, and then saved it, which then appeared to fix the problem.

  • inanoffice23 Profile Picture
    inanoffice23 214 on at
    Re: CSS Web file not active error?

    Did you get an answer to this? We have the same issue here. We created a new site to have the 'data model' as 'enhanced' and it has triplicated the website files everywhere. Also we can't find it with Visual Studio Code or Portal Content Editor even though it's in the same URL area

  • fm_skeller Profile Picture
    fm_skeller 277 on at
    Re: CSS Web file not active error?

    If you try and access the css file directly, with the portal url, does it render the css file in the browser? If not, can you check that the note that contains the css file is still attached to the webfile (in the portal managment app).

  • elfreddos Profile Picture
    elfreddos 106 on at
    Re: CSS Web file not active error?

    Thanks, but I literally wrote at the end of my post

     

    "I have deactivated and re-activated the two mentioned files, but the issue persists"

  • jyotiatharv Profile Picture
    jyotiatharv 63 on at
    Re: CSS Web file not active error?

    @elfreddos  It seems your theme.css & bootstrap.min.css web files are not active. You can open the Portal Management app and navigate to Web files. Search for both these files in Inactive webfiles and activate them.
    If already reactivated then download the css files from notes of each file and check its content. Delete these 2 old webfiles and create new ones by uploading css files in notes

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,567

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,907

Leaderboard