Title: Fix HTML Validation error
Last modified: September 20, 2018

---

# Fix HTML Validation error

 *  [speedy_snail](https://wordpress.org/support/users/speedy_snail/)
 * (@speedy_snail)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/fix-html-validation-error/)
 * W3C HTML Validator gives an error:
 * > Bad value //fonts.googleapis.com/css?family=Open+Sans:400,300,600,700|Roboto
   > +Condensed:300italic,400italic,700italic,400,300,700&subset=latin,latin-ext
   > for attribute href on element link: Illegal character in query: | is not allowed.
 * Fix is to change ‘|’ to ‘%7C’ in functions.php in the function square_fonts_url()
 * Replace:
 *     ```
       if ( $fonts ) {
       	$fonts_url = add_query_arg( array(
       		'family' =>  implode( '|', $fonts ) ,
       		'subset' =>  $subsets ,
       	), '//fonts.googleapis.com/css' );
       }
       ```
   
 * With:
 *     ```
       if ( $fonts ) {
       	$fonts_url = add_query_arg( array(
       		'family' =>  implode( '%7C', $fonts ) ,
       		'subset' =>  $subsets ,
       	), '//fonts.googleapis.com/css' );
       }
       ```
   

Viewing 1 replies (of 1 total)

 *  Theme Author [hashthemes](https://wordpress.org/support/users/hashthemes/)
 * (@hashthemes)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/fix-html-validation-error/#post-10707099)
 * We will fix this in our next update. Thank you for the suggestion.

Viewing 1 replies (of 1 total)

The topic ‘Fix HTML Validation error’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/square/2.0.68/screenshot.jpg)
 * Square
 * [Support Threads](https://wordpress.org/support/theme/square/)
 * [Active Topics](https://wordpress.org/support/theme/square/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/square/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/square/reviews/)

## Tags

 * [html validator](https://wordpress.org/support/topic-tag/html-validator/)

 * 1 reply
 * 2 participants
 * Last reply from: [hashthemes](https://wordpress.org/support/users/hashthemes/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/fix-html-validation-error/#post-10707099)
 * Status: not resolved