Title: [Plugin: WP Google Fonts] HTML Validation Bug
Last modified: August 20, 2016

---

# [Plugin: WP Google Fonts] HTML Validation Bug

 *  [ahmadhh](https://wordpress.org/support/users/ahmadhh/)
 * (@ahmadhh)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-wp-google-fonts-html-validation-bug/)
 * I’m getting a validation error from using Open Sans. It seems to trim the spaces
   everywhere else.
 * **Bad value** [http://fonts.googleapis.com/css?family=Open](http://fonts.googleapis.com/css?family=Open)
   Sans:light,lightitalic,regular,regularitalic,600,600italic,bold,bolditalic,800,800italic
   for attribute href on element link: Whitespace in query component. Use %20 in
   place of spaces.
 * [http://wordpress.org/extend/plugins/wp-google-fonts/](http://wordpress.org/extend/plugins/wp-google-fonts/)

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

 *  [thrawn12](https://wordpress.org/support/users/thrawn12/)
 * (@thrawn12)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-wp-google-fonts-html-validation-bug/#post-3082598)
 * in wp-google-fonts.php try editing the Option Value for Open Sans from
 * `Open Sans:light,lightitalic,regular,regularitalic,600,600italic,bold,bolditalic,
   800,800italic`
 * to
 * `Open%20Sans:light,lightitalic,regular,regularitalic,600,600italic,bold,bolditalic,
   800,800italic`
 *  Thread Starter [ahmadhh](https://wordpress.org/support/users/ahmadhh/)
 * (@ahmadhh)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-google-fonts-html-validation-bug/#post-3082695)
 * Thanks, but it won’t fix the bug for everyone else that tries downloading the
   latest version of this plugin.
 * I went ahead with a different font for now. I will leave this as a courtesy note
   to the developer.
 *  [Eric McNiece](https://wordpress.org/support/users/emcniece/)
 * (@emcniece)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-google-fonts-html-validation-bug/#post-3082786)
 * I also hit the space/%20 validation error. This is not a hard fix… hint, hint:
 *     ```
       echo '<link href=\''.$http.'://fonts.googleapis.com/css?family='.$googlefont1.'\' rel=\'stylesheet\' type=\'text/css\' />';
       ```
   
 * becomes
 *     ```
       echo '<link href=\''.$http.'://fonts.googleapis.com/css?family='.str_replace(' ', '%20', $googlefont1).'\' rel=\'stylesheet\' type=\'text/css\' />';
       ```
   
 * Adrian, please confirm that you will fix this for the next release!

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

The topic ‘[Plugin: WP Google Fonts] HTML Validation Bug’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-google-fonts_ffffff.svg)
 * [WP Google Fonts](https://wordpress.org/plugins/wp-google-fonts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-google-fonts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-google-fonts/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-google-fonts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-google-fonts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-google-fonts/reviews/)

## Tags

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

 * 3 replies
 * 3 participants
 * Last reply from: [Eric McNiece](https://wordpress.org/support/users/emcniece/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-google-fonts-html-validation-bug/#post-3082786)
 * Status: not resolved