How to use Google Fonts on your WordPress

No font-face kit required!

Just add this code to your function.php

function load_fonts() {
            wp_register_style('googleFonts', 'http://fonts.googleapis.com/css?family=Rock+Salt|Neucha');
            wp_enqueue_style( 'googleFonts');
        }
add_action('wp_print_styles', 'load_fonts');

… and use Google Fonts service as usual!

 

thanks Dan Johnson

Leave a Reply