Disable Google web fonts


Here i am looking to completely disable Google web fonts from sparkling theme and looking to use hosted fonts to replace them.

How can i disable them completely using child theme?

Hi @wpdiv,

I hope you are well today and thank you for your question.

You can disable Google web fonts from sparkling theme by adding the following code in the functions.php file of your child theme and add the hosted fonts as described in this page http://www.wpbeginner.com/wp-themes/how-to-add-custom-fonts-in-wordpress/

add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles', 99 );
function theme_enqueue_styles() {
     // Remove Google Fonts
  	wp_deregister_style( 'sparkling-fonts');

Alternatively you can use the attached child theme that contains the above code.

Best Regards,