CSS disappearing when publishing knowledge base articles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2024 02:14 PM
Hi everyone.
I am quite new to Service now, so I apologise if I sound quite naive.
I have a question. I am making new/editing knowledge base articles in Service now using CSS, but the CSS is disappearing when I publish the article, which is mildly infuriating. I have referred to https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1194889#:~:text=Workaround,on...
This doesn't seem to be working either. Im not entirely sure whats going on in the backend of things, as I am en gineer working for a company, so I only get to see front end.
I do have some of experience in coding, but havent come across this type of issue before on other platforms. I have also noticed that when I apply the fix mentioned above & click save on the article & go back into the source code, it adds a space: <p style="display:none;"></p> between the : & none every single time. Typically browsers ignore the space in these declarations but considering this is official documentation, im unclear if this is causing the issue.
I have looked around & honestly cant find much apart from this one KB on it. Any help would be hugely appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2024 08:28 AM
I'm fairly sure your instance should be at least on Tokyo where the CSS issue should have been fixed. Looking at the problem it was fixed in Tokyo Patch 4 which was released on Dec 22.
Honestly I wouldn't be surprised if there has been some issue with the knowledge content and that has been "fixed" with a business rule that does something to the source which in turn causes it to break now. Sometimes fixes break when servicenow makes their own.
You mentioned that you only see the front end, so you can't check Business Rules or client scripts, right?
If so then i'd recommend that you create an incident for your company instead about it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2024 11:08 AM
Hi, thank you so much for the reply.
That is correct, im unable to check business rules or client scripts. I appreciate the guidance. We have SNOW platforms owners working with us, so I was keen to start here first before approaching them, but yes I will raise something to them & go from there.
Thanks again! Take care 🙂