Title: Google Fonts
Last modified: August 21, 2016

---

# Google Fonts

 *  [John Dao](https://wordpress.org/support/users/tiggerlu/)
 * (@tiggerlu)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/google-fonts-10/)
 * Great plugin, as you know every WP installation has its own challenges. One of
   the things i’ve noticed not only with this plugin but other optimizer is they
   break Google Fonts that are declared inline such as:
 * [http://fonts.googleapis.com/css?family=Lato:400,700&ver=3.0.1](http://fonts.googleapis.com/css?family=Lato:400,700&ver=3.0.1)
 * becomes a 404 of:
    [http://fonts.googleapis.com/css](http://fonts.googleapis.com/css)
 * Have you encountered this before, is there a way to exclude inline declarations
   like this?
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/google-fonts-10/#post-4956511)
 * First of all; what do you mean with “inline”? Google’s fonts are supposed to 
   be initiated by loading a CSS-file. So either that CSS-file is linked in the 
   HTML like this;
 *     ```
       <link rel='stylesheet' id='open-sans-css'  href='//fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600italic%2C300%2C400%2C600&subset=latin%2Clatin-ext&ver=3.9' type='text/css' media='all' />
       ```
   
 * or the font-CSS is imported from within a block of CSS (inline or in a style.
   css file), like this;
 *     ```
       @import url('http://fonts.googleapis.com/css?family=Open+Sans');
       ```
   
 * I’ve tested with the first approach [on my testblog](http://futtta.be/wordpress/)
   and there the Google Font CSS URL is left untouched and the fonts load correctly.

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/google-fonts-10/#post-4956511)
 * Status: not resolved