Articles on: Knowledgebase

How to disable Google fonts?

Google fonts are only loaded on your site if you choose to do so in the customizer. But, if you still want to disable them from your site for some reason, you can do so by following the steps below:

Create or download the child theme for Zakra to add a small PHP code snippet.

Add the PHP code snippet given below inside the functions.php file of your child theme.

add_action( 'wp_enqueue_scripts', function() {
    wp_dequeue_style( 'zakra_googlefonts' );
} );

This will remove the Google fonts from the front end of your site.

How to create a child theme? Please follow this article:

Updated on: 02/03/2022

Was this article helpful?

Share your feedback


Thank you!