How do I use SNOW CSS includes to create a consistent style between KBA templates?

jeremyduffy
Kilo Guru

We have templates that you can apply to new Knowledge Base Articles and those are stored as HTML code with various styles. I'm trying to convert the styles to an external stylesheet so we can modify all the templates via the one stylesheet (instead of having to manually edit thousands of articles).

 

My style sheets is in "sp_css.LIST"

jeremyduffy_0-1749482226630.png

I created an entry in "sp_css_include.LIST" which I assume is necessary for it to be visible to the articles (not sure on this one)?

jeremyduffy_1-1749482277176.png

My template code is as follows:

 

jeremyduffy_2-1749482300231.png

And the end result is this:

jeremyduffy_3-1749482323931.png

This doesn't work. I also tried /styles/kba-template-styles.css, but it didn't work either. It keeps surrounding it with paragraph tags which I don't think are going to hurt anything, but the bottom line is that it doesn't work. What do I do to include these properly?

2 REPLIES 2

YaswanthKurre
Giga Guru

Hi @jeremyduffy ,

 

Please refer the below community articles:

 

1. Solved: How to apply CSS to knowledge articles? - ServiceNow Community

2.How to change the CSS for Knowledge Articles - Support and Troubleshooting

 

If this helps you, mark this as correct and helpful.

Thanks,

Yaswanth

Thank you for the effort, but neither of those address the issue at hand. I'm not trying to update styles for all articles, I'm trying to build templates that people can choose from which fill the field with starter tables in a style that I choose. I can already design the templates with styles, but not if I'm using a sp_css style. I need to use an sp_css style or something similar so that all the articles that use the templates have consistent style (including if we change that style later).