Created
July 12, 2020 11:53
-
-
Save deeman/5ec0c86d39ffcb673eb1ea51c656c64c to your computer and use it in GitHub Desktop.
Dequeue Google Fonts in WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'style_loader_src', function($href){ | |
if(strpos($href, "//fonts.googleapis.com/") === false) { | |
return $href; | |
} | |
return false; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment