Add any Google Font to a Course

If you want to add a Google Font outside of the 33 we provide for you, this doc will walk you through that.

Jason Zook avatar
Written by Jason Zook
Updated over a week ago

Before we begin, adding a Google Font to your course does require understanding how to add simple CSS and CSS classes. If you are not comfortable working with simple CSS, we HIGHLY recommend just using one of our existing 50+ Google Fonts.

Coming soon: We'll have an additional help doc for custom fonts if you want to use a non-Google Font.

πŸ” Step #1: Find your Google Font

You may already have a font selected, but if not, just head to the Google Font library and poke around.

πŸ”₯ Hot-Tip: If you like to find newer, lesser-known fonts, change the sorting option from "Trending" to "Newest." This will give a list of fonts that aren't being used everywhere by everyone!

🀘 Step #2: Select the Font and grab the Link Code

NOTE: 🚨 For this example, we're going to show you adding the Google Font "Oi" to your course. We would NOT recommend such a bold, hard-to-read font. We used this font as an example because it's very easy to see it change!

You're going to select the font and then grab the link code which we'll add to your course in Step #3.

  1. When you're on the font's page, click the "Select this Style" button in line with the font (if there are multiple font weights, you'll want to choose the one font weight you want.)

  2. Then, click the "Selected Families" icon which is in the top right (the icon has 3 squares and a + sign).

  3. Scroll down to the Use on the web section, make sure <link> is toggled, and then copy the lines of code.

Oi Google Font example link code:

<link rel="preconnect" href="">
<link href="" rel="stylesheet">

🍎 Step #3: Add Google Font Code to Your Teachery Course

The code you just copied from Google Fonts we're now going to add to the Add Custom Font Script code area of your course's Manage Options page. Here's how to do that:

  1. Click in to edit your course from the Courses page

  2. In the left sidebar, scroll down to Course Settings, click to expand, and then click Manage Options

  3. In the Manage Options page, scroll down to the "Add Custom Font Code" section and paste the Google Font code!

  4. Make sure to click the Save Options button βœ…

NOTE: This step is telling Teachery that there's a Google Font you want to use. Now, we have to assign specific text in your course to display the font (that's Step #4!)

πŸ‘Ύ Step #4 Add simple CSS to display the Google Font in your Course

Writing any custom CSS can be really tricky, so we've tried to give you some sample CSS below that you can interchange easily!

You're going to be using our simple CSS editor, which you can find in the Style Your Course section of the left sidebar editor. Once you expand the Style section click on the Add Custom CSS option. You are now in the CSS editor!

πŸ‘‰ For the headings (H1, H2, H3, and H4) of EITHER Teachery Course Template

If you're using the Sidebar or Default Course Template, this code will apply your Google Font to all the Headings through all pages of your course (Overview, Lessons, Landing, Payment, and Login Pages):

.imitate-h3, h1, h2, h3, h4, h1froala, h2froala, h3froala, h4froala .imitate-h2-template-2 {font-family: 'Oi' !important;}

⬆️ In the code snippet above, you'll simply replace Oi with the name of your selected font. For example, if you are using the Google Font Fredoka, you'd have 'Fredoka' in your CSS instead of 'Oi'. Leave the !important part in the CSS code as that is needed to override Teachery's fonts.

Here's what your CSS should look like CSS editor:

➑️ Don't forget to click Apply Changes AND Publish Changes in the CSS editor!

IMPORTANT: ⚠️ You will NOT see the Google Font in the course editor view. You'll ONLY see the font display when you preview your course.

❇️ BONUS: How to apply Google Fonts to other text areas in your course

For any OTHER areas of your course where you want to apply your Google Font, you'll need to use the browser Inspector and grab the CSS class(es) and add it to the CSS code.

Here's a video walking you through that process. In the example in the video, we walk you through adding a second Google Font for your Overview page buttons:

If you want the quick CSS to grab to update your Overview page buttons on the Default Course Template, here is that CSS (remember to change your font-family).

#lessons-page .lesson .button  {font-family: 'Train One' !important;}


Hope this helps you customize your course to your liking! πŸ‘‹

Did this answer your question?