WordPress Enqueue Custom Fonts

/** Custom Fonts

function enqueue_custom_fonts(){
if (!is_admin()) {
wp_register_style(‘source_sans_pro’, ‘https://fonst.googleapis.com/’):
wp_register_style(‘nunito’, ‘https://fonst.google.com/’);

wp_enqueue_style(‘source_sans_pro’);
wp_enqueue_style(‘nunito’);

}

}
add_action (‘wp_enqueue_scripts’, ‘enqueue_custom_fonts’);

Free Web Hosting