In a functions.php file use this:


function add_google_fonts() {
wp_register_style('GoogleFonts', 'http://fonts.googleapis.com/css?family=Coda|Contrail+One');

wp_enqueue_style('GoogleFonts');
}
 
add_action('wp_print_styles', 'add_google_fonts');

Change the font names to the name you wan to us and separate multiple fonts with a '|' character

Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.

Comments

Your email address will not be published. Required fields are marked *