Anyone know to download and use a custom font in an HTML widget? I can obtain both an html link and @import for CSS, but can seem to find a place where I can add them to the header or style sheet.
Answer
Downloading a Custom Font
Best answer by alekwo
I’m not sure if I fully understand where the problem is.
Generally, in the Custom Stylesheet, you first add the font definition (like this):
@font-face {
font-family: 'Tiempos';
src: url("https://my1.content-cms.com/6f28ae20-732e-4d5d-be9a-c46cd8a2cf05/dxdam/86/86d494ed-caba-47af-b3d2-05d28d34f620/TiemposFineWeb-Medium.woff")
}
Then, also in the CSS, you define a class that uses this font, for example:
.products-hero h1 {
font-family: 'Tiempos';
}
And then in the HTML widget, you assign this class to an element… like this:
<section class="products-hero">
<h1>
Custom font
</h1>
</section>
Log in to Docebo Community
Enter your email address or username and password below to log in to Docebo Community. No account yet? Create an account
Docebo Employee Login
or
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.