Last active
April 30, 2019 17:46
-
-
Save Dan0sz/a3a5c6f37513a747b04b101949155545 to your computer and use it in GitHub Desktop.
Remove Google Fonts from Sparkling WordPress Theme using a Child Theme
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
<?php | |
// The start of my Child Theme's functions.php | |
function sparkling_remove_google_fonts() { | |
wp_dequeue_style('sparkling-fonts'); | |
wp_deregister_style('sparkling-fonts'); | |
} | |
add_action('wp_enqueue_scripts', 'sparkling_remove_google_fonts', 100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment