Title: Dequeue Google Fonts
Last modified: August 31, 2016

---

# Dequeue Google Fonts

 *  Resolved [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/dequeue-google-fonts/)
 * Hi!
 * I’m trying to remove the loading of Google Fonts from the theme, because I want
   to save the webfonts locally to save DNS requests.
 * While digging through the code of the theme I found the following lines:
 * `wp_enqueue_style( 'onepress-fonts', onepress_fonts_url(), array(), null );`
 * So I wrote a function in my child theme’s functions.php to dequeue the style:
 *     ```
       function dequeue_google_fonts() {
       	wp_dequeue_style( 'onepress-fonts' );
       }
       add_action( 'wp_enqueue_style', 'dequeue_google_fonts', 20);
       ```
   
 * But it isn’t working? Could you tell me what I’m doing wrong?

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

 *  Theme Author [FameThemes](https://wordpress.org/support/users/famethemes/)
 * (@famethemes)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/dequeue-google-fonts/#post-7274783)
 * Did you try : `add_action( 'wp_enqueue_scripts', 'dequeue_google_fonts', 20);`
 * Or you can use translate file to turn off Google Fonts, read this code from default
   theme :
 *     ```
       /*
       	 * Translators: If there are characters in your language that are not supported
       	 * by Noto Serif, translate this to 'off'. Do not translate into your own language.
       	 */
       	if ( 'off' !== _x( 'on', 'Noto Serif font: on or off', 'twentyfifteen' ) ) {
       		$fonts[] = 'Noto Serif:400italic,700italic,400,700';
       	}
       ```
   
 *  Thread Starter [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/dequeue-google-fonts/#post-7274839)
 * I ended up finding that translator-thing, too. And it worked, but thank you for
   the solution of the action. I’ll try it later, just to see if it would work. 
   🙂

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

The topic ‘Dequeue Google Fonts’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/onepress/2.3.18/screenshot.png)
 * OnePress
 * [Support Threads](https://wordpress.org/support/theme/onepress/)
 * [Active Topics](https://wordpress.org/support/theme/onepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/onepress/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/onepress/reviews/)

## Tags

 * [google fonts](https://wordpress.org/support/topic-tag/google-fonts/)

 * 2 replies
 * 2 participants
 * Last reply from: [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/dequeue-google-fonts/#post-7274839)
 * Status: resolved