How to Enqueue Google Fonts in WordPress

Quick and simple one liners that’ll put Google Fonts into your Wordpress theme.

Enqueuing fonts should be done in the functions file. Here are a couple of examples that you can copy and paste to try it out:

Enqueue a single font:

wp_enqueue_style(‘googleFonts’, ‘,400i,700);

Enqueue multiple fonts (using the pipe separator to get multiple fonts):

wp_enqueue_style(‘googleFonts’, ‘,400i,700|Merriweather:400,400i,700’);

If you found this useful please consider a small donation: