Skip to main content

Add a custom Google Font in your quiz

Wendy avatar
Written by Wendy
Updated over a month ago

If the font you want to use is not available in the Typography dropdown, you can include it by heading over to the Google font page and importing this into your quiz.

Step1: Import the Google font you want to use.


1.1. Head over to the Google font page and select Get font, followed by the <> Get embed code.

Image showing the Google Fonts interface where the "Get font" button is highlighted at the top, and below it, the "&lt;&gt; Get embed code" button is highlighted, which appears after clicking "Get font." In this example, the Questrial font was selected.

1.2. Select the @import option and copy the @import code:

Image showing the Google Fonts embed tab with the @import code snippet highlighted and ready to be copied.

1.3. Inside your quiz editor, head over to Settings -Tracking Code and paste the copied code in the Head section

Image showing where to paste the Google Fonts @import code inside the Lantern Settings tab under the Tracking Code Head section.

Step2: Apply the font to the quiz

2.1. Once this is done, you can return to the quiz editor and apply the custom font using CSS. To do this, go to Theme Settings-> Edit custom CSS .

Image showing the Theme Settings panel in Lantern, with the "Edit custom CSS" option highlighted to apply the new font.

2.2. You can target specific elements such as only the questions, headings or button font, however, to apply the new font to the entire quiz you can use the following snippet and replace Font Family Name with the name of the actual font:

.main-container {​font-family: "Font Family Name", sans-serif;​}

For help adding other types of font such as custom or Adobe fonts, please contact our team at [email protected]

Did this answer your question?