• Resolved dnlkwn

    (@danielkwan)


    How do I make the theme not use Google Fonts? Is it possible to do this via a child theme?

    The reason I want to not use Google Fonts is that it is intermittently (more often than not) blocked in China, so any site that uses Google Fonts tends to load incredibly slow or load forever.

    Thanks.

Viewing 1 replies (of 1 total)
  • Theme Author Ben Sibley

    (@bensibley)

    Thanks for using Tracks!

    You can stop google fonts from being loaded by the theme by adding the following PHP to your child theme’s functions.php file:

    <?php 
    
    function my_unregister_google_fonts(){
    
    	wp_deregister_style( 'ct-tracks-google-fonts' );
    }
    
    add_action('wp_enqueue_scripts', 'my_unregister_google_fonts', 999 );
Viewing 1 replies (of 1 total)
  • The topic ‘How to not use Google Fonts?’ is closed to new replies.