Skip to content

Instantly share code, notes, and snippets.

@Dan0sz
Last active April 30, 2019 17:46
Show Gist options
  • Save Dan0sz/a3a5c6f37513a747b04b101949155545 to your computer and use it in GitHub Desktop.
Save Dan0sz/a3a5c6f37513a747b04b101949155545 to your computer and use it in GitHub Desktop.
Remove Google Fonts from Sparkling WordPress Theme using a Child Theme
<?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