Using the following snippet will let you replace theme’s Google font with your own font in WordPress.
1 2 3 4 5 6 | function add_fonts() { // Styles Format: wp_enqueue_style($handle, $src, $deps, $ver, $media); wp_register_style('open-sans', 'http://fonts.googleapis.com/css?family=Bree+Serif:400,300,700', array(), false, 'all'); wp_enqueue_style( 'open-sans'); } add_action('wp_enqueue_scripts', 'add_fonts', 100); |