Question

Changing the Default font in the Docebo platform.

  • 24 September 2021
  • 12 replies
  • 1006 views

Userlevel 3
Badge +1

Hello, Our company has a specific font they would like to use. Would it be possible to implement this font into the platform? If so, where is this done and are there any articles on it.

Thank you!


12 replies

Userlevel 6
Badge +1

I’ve had success with the methods outlined in this resource: https://docs.google.com/document/d/1qIwPmsI1ih0_3ruZmkfQDbshN51nTl-_xd--GvZshHQ/edit?usp=sharing.

 

Hope this helps!

 

Userlevel 3
Badge +1

Hello Nick,

I entered the link and viewed the page to be added to the css. However I would like to use a different font than the one in the code (Coda Caption and Roboto). How would I obtain a script that has the font I want to implement? sofia-pro?. I noticed the script has (src=) to these fonts so I’ll need to obtain the proper src.

Thank you,

Userlevel 6
Badge +1

@ncassella if you have the actual sofia-pro font file(s) (usually .otf,.ttf, or .woff2 format), I’d recommend the second method listed in that resource (scenario 2). Use an online font converter tool such as transfonter or fontsquirrel to upload your font file and make sure you select the option to convert it to base64.

The output should be a really long CSS declaration and the first property should be font-family: “sofia-pro” or something similar. This CSS is what imports the font and makes it available for use but it isn’t actually applying anywhere yet. You have to use another line of CSS to apply the fonts to the elements you want.

The CSS with that long list of elements at the end of that doc should be a good starting point to applying the new font globally but you’ll change {font-family: Roboto;} to {font-family: sofia-pro} or whatever the name of your font was.

Userlevel 1

Hi! 

The first method in the document shared by nick.tosto here worked for me. I had to pull the font from Google Docs and following the steps did the trick. However, this piece of code covers all tags but one. 

/* Change font for entire platform */
a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, canvas, caption, center, cite, code, dd, del, details, dfn, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, iframe, ins, kbd, label, legend, li, mark, menu, nav, object, ol, output, p, pre, q, ruby, s, samp, section, small, span, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, tt, u, ul,

Note that the tag input is not there, so the custom font will not show in boxes where you are expected to type input, such as the search box at the top of any screen. I've added the tag to the bit below, so you can just copy and paste it instead.

Thank you for posting this solution, though, as it was tremendously helpful! 

/* Change font for entire platform */
a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, canvas, caption, center, cite, code, dd, del, details, dfn, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, iframe, input, ins, kbd, label, legend, li, mark, menu, nav, object, ol, output, p, pre, q, ruby, s, samp, section, small, span, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, tt, u, ul,
Userlevel 7
Badge +5

I have tested the second method in an HTML widget and it works great!!  Thank you so much for sharing!!!

I did find, I try to create a link, the formatting gets all funky:

Top is normal without link, bottom is linked - is there a way to keep the original formatting even if it is linked (just within the html widget and not the entire platform)?

Userlevel 7
Badge +3

Interesting, the block to cover the entire platform has the a element covered so it should update, unless the cascade is getting you and there is more custom CSS defined lower down for links?

Userlevel 1

Hi - this is great, thank you so much for sharing! 😎

 

A question, do you know why the font on the custom content box buttons has not updated? Having a look round my sandbox it looks like the rest has updated and I’ve used the updated CSS above. 

 

Thanks!

Jack

 

Userlevel 7
Badge +3

Hi - this is great, thank you so much for sharing! 😎

 

A question, do you know why the font on the custom content box buttons has not updated? Having a look round my sandbox it looks like the rest has updated and I’ve used the updated CSS above. 

 

Thanks!

Jack

 

Probably missing the class for that one. I’ve actually got this configured in my CSS Wizard on Fark.Tools

Feel free to set up a free account and give it a try. You can also set it up to be for specific pages instead of system wide.

Alternatively, these tags cover the headings for all widget types:
 

/* Modify the Title block on all widgets. Includes border, background, padding, font, and connecting to full body. Also can hide the title depending on settings. */
.common-widget-title, task-list-widget widget-title {
font-family: 'Acme','sans-serif';
}

 

Userlevel 1

Hey @Bfarkas thanks for replying to this. Fark.Tools looks amazing - thanks so much for sharing this, I’ve just signed up and shared with my team :) 

I unfortunately still can’t get the font on the buttons to update to Poppins but I’ll keep playing around.

Userlevel 7
Badge +3

Hey @Bfarkas thanks for replying to this. Fark.Tools looks amazing - thanks so much for sharing this, I’ve just signed up and shared with my team :) 

I unfortunately still can’t get the font on the buttons to update to Poppins but I’ll keep playing around.

Ah sorry, I only supported the titles of widgets for now, misread. 

.button-text {
font-family: Poppins;
}

That should update all the buttons for you.

I made a note to add this scenario to the wizard in the next update.

Userlevel 1

Thanks so much @Bfarkas 💪

Hi,

Did you guys managed to make the new font appear inside the certificates of completion as well?

Thanks!

Reply