Title: Delete Google Font ?
Last modified: February 23, 2017

---

# Delete Google Font ?

 *  [alex586](https://wordpress.org/support/users/alex586/)
 * (@alex586)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/delete-google-font/)
 * I’m trying to deregister only Robot Slab Google font from my WordPress site. 
   I use a child theme of Sparkling.
 * On the main theme, I can see in functions.php:
 *     ```
       // Add Google Fonts
         wp_register_style( 'sparkling-fonts', '//fonts.googleapis.com/css?family=Open+Sans:400italic,400,600,700|Roboto+Slab:400,300,700');
         wp_enqueue_style( 'sparkling-fonts' );
       ```
   
 * How can I disable this on my child theme ?
    Thanks !
    -  This topic was modified 9 years, 5 months ago by [alex586](https://wordpress.org/support/users/alex586/).
    -  This topic was modified 9 years, 5 months ago by [alex586](https://wordpress.org/support/users/alex586/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 5 months ago](https://wordpress.org/support/topic/delete-google-font/#post-8840814)
 * Well, there’s this:
 * [https://codex.wordpress.org/Function_Reference/wp_deregister_style](https://codex.wordpress.org/Function_Reference/wp_deregister_style)
 *  Thread Starter [alex586](https://wordpress.org/support/users/alex586/)
 * (@alex586)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/delete-google-font/#post-8840838)
 * Hello,
    I tried this, but I’m not comfortable with PHP. It seems not work.
 *     ```
       function unhook_parent_style() {
   
         wp_dequeue_style( 'sparkling-fonts' );
         wp_deregister_style( 'sparkling-fonts' );
   
       }
       add_action( 'wp_enqueue_scripts', 'unhook_parent_style', 20 );
       ```
   
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 5 months ago](https://wordpress.org/support/topic/delete-google-font/#post-8840854)
 * Try this
 *     ```
       function unhook_parent_style() {
         wp_dequeue_style( 'sparkling-fonts' );
       }
       add_action( 'after_theme_setup', 'unhook_parent_style', 20 );
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Delete Google Font ?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/delete-google-font/#post-8840854)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
