Google font errors
-
FYI… Posting in case anyone else hits this issue & so that it can be fixed in an update…
There are “failed to load resource” errors thrown for “fonts.googleapis.com/css”.
I found that they are coming from lines 200-230 in functions.php.Since I am hosting google fonts of my choice, I have corrected this in my child theme’s functions.php by dequeue-ing those fonts with the following code:
//* Dequeue Styles – Remove Google Fonts
add_action( ‘wp_print_styles’, ‘dequeue_google_fonts_style’, 20 );
function dequeue_google_fonts_style() {
wp_dequeue_style( ‘ashe-playfair-font’, ashe_playfair_font_url(), array(), ‘1.0.0’ );
wp_dequeue_style( ‘ashe-opensans-font’, ashe_opensans_font_url(), array(), ‘1.0.0’ );
wp_dequeue_style( ‘ashe-kalam-font’, ashe_kalam_font_url(), array(), ‘1.0.0’ );
wp_dequeue_style( ‘ashe-rokkitt-font’, ashe_rokkitt_font_url(), array(), ‘1.0.0’ );}
Hope this helps anyone who gets the errors & helps to get them fixed in the theme.
- The topic ‘Google font errors’ is closed to new replies.