Skip to content

Snippet: Don’t Load Google Font Stylesheets

If you want to be able to define Google fonts in your theme but not have the actual fonts loaded on the site (for example if you are using the OMFG Plugin to store your Google fonts locally you can use the code below to completely disable the loading of Google fonts in Total.

add_filter( 'wpex_enqueue_google_font', '__return_false' );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top