Overriding the Font on Your Knowledge Base

River Sloane Updated by River Sloane

If you're looking to load a fancy new font of your own or simply want to make a small change to one element you can override fonts on your knowledge base with a little CSS.

Not sure how to target an element? Follow our guide about finding CSS selectors.

Loading or Importing Fonts

Depending on the font you'd like to use, you may have to import or load the font from an external source.

For example, the Source Sans Pro we use in our template Curve is imported from Bunny Fonts using the following code at the top of our CSS:

@import url('https://fonts.bunny.net/css?family=Source+Sans+Pro');

Then to use the font we override the element body with font-family:

body :not(.fa) {
font-family: 'Source Sans Pro', Helvetica, sans-serif;

If you're using a font from somewhere like Typekit or Fonts.com you'll need to paste in a JavaScript snippet as these are loaded externally.

Be sure to include backup fonts like we have with Helvetica and sans-serif.

What did you think of this doc?

Adding Lightboxes to Images

Making Your Printed HelpDocs Look Nicer

Get in touch

This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply.