Use Google Font Directory Fonts in WordPress

Google has some seriously nice looking fonts available for you to use for free in the Google Font Directory. All the fonts are under an open source license and are served right from Google servers.

Most modern web browsers support webfonts. The Google Font API FAQ would be a good place to visit if you have questions or are curious about some of the limitations.

Making use of these fonts in your WordPress theme is extremely easy, as long as you have a basic understanding of CSS. Now let’s get down to using these in your WordPress theme, we’ll keep it short and simple.

First, head over to the Google Font Directory and pick a font to use. I’ll be using IM Fell as an example, since that’s the font I use for post titles on this site.

Once you find a font you like, click on it. If the font you chose has variants, you will need to click on a variant to use. Once you’re on the font page, click the “Get the code” tab and google will generate the code for the font. You will embed this code in the header.php file for your theme. I usually put it right before the line that calls the theme stylesheet file. Here’s the code I used to include the IM Fell font:

<link href='' rel='stylesheet' type='text/css' />

After that, all you have to do is use the font in your CSS, typically the style.css file in your WordPress theme directory. To get my post titles to use the IM Fell font, I did this:

.entry-title, h3 {
	font-family: 'IM Fell DW Pica', arial, serif;
	font-size: 28px;
	font-weight: 600;

The font-size property defines what size of font to use (duh!). The font-weight property defines the thickness of the font (degree of boldness). You can apply the font-family property using the Google Font to pretty much any piece of CSS that targets text. You can use it for post content, links, widget titles, or whatever you want really.

If you have any questions, feel free to leave a comment and I’ll do my best to help you out!

  • moby

    thanks for this really appreciate it, i wish to apply it to my joomla themes – it will be a similar process i’m guessing?

    • Yup, similar process in Joomla, probably almost identical.

  • great post Tyler might just try this out myself, although I can imagine its not for the nervous coder and a bit of css knowledge is needed!
    Thanks for sharing buddy! btw seems this theme is a popular one i see it in lots of other blogs!
    Am thinking of making a bespoke one for myself from scratch! thanks for the inspireation buddy!

    Kindest Regards
    -Phillip Dews

    • Hi Phil,

      It’s actually pretty easy to use Google fonts on a website (not just wordpress sites).

      Just a matter of deciding which font to use, adding a line of code to your head and specifying the font in CSS.