How Can I Set a Default Font Family and Font Size for HTML Fields in Knowledge Articles?

SandeepKSingh
Kilo Sage

I want to ensure that all HTML fields in my Knowledge Articles have a consistent font family and font size. Could someone provide guidance on how to apply these default styles across all Knowledge Articles? Any help with implementing this would be greatly appreciated.

 

2 ACCEPTED SOLUTIONS

Bhavya11
Kilo Patron

Hi @SandeepKSingh ,

 

You can right click the "text" html field and choose "Configure dictionary". Then insert this into the default value

 

then add this in default value <p><span style="font-family: arial ; font-size: 14pt;">&nbsp;</span></p>

Then all new knowledge articles will start with this font size and font family.

 

 

Please, remember to mark Correct or Helpful if you find my response useful.

 

 

Thanks,

BK

View solution in original post

Ravi Gaurav
Giga Sage
Giga Sage

Hi @SandeepKSingh 

Try the below code :-

<p><span style="font-family: serif, sans-serif; font-size: 12pt;">&nbsp;</span></p>

--------------------------------------------------------------------------------------------------------------------------


If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!

Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI

 YouTube: https://www.youtube.com/@learnservicenowwithravi
 LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/

View solution in original post

3 REPLIES 3

Bhavya11
Kilo Patron

Hi @SandeepKSingh ,

 

You can right click the "text" html field and choose "Configure dictionary". Then insert this into the default value

 

then add this in default value <p><span style="font-family: arial ; font-size: 14pt;">&nbsp;</span></p>

Then all new knowledge articles will start with this font size and font family.

 

 

Please, remember to mark Correct or Helpful if you find my response useful.

 

 

Thanks,

BK

Hello Bavya,

 

How can we apply the same logic for the Existing knowledge Articles. We have the similar requirement, where the font size and font style should apply to the knowledge Articles, when it is created/ edited. Could you please help with this?

I tried with the above solution, it is working only for the new Article creation.

 

Regards,

Kruthika

Ravi Gaurav
Giga Sage
Giga Sage

Hi @SandeepKSingh 

Try the below code :-

<p><span style="font-family: serif, sans-serif; font-size: 12pt;">&nbsp;</span></p>

--------------------------------------------------------------------------------------------------------------------------


If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!

Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI

 YouTube: https://www.youtube.com/@learnservicenowwithravi
 LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/