Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialtinaf
6,785 PointsGoogle font URL error
How do I fix the google font url error and pass the validator test
2 Answers
hchris
Courses Plus Student 11,116 PointsI had this pop up too. You need to "percent encode" the URL, specifically the pipe character ( | ) between Changa One and Open Sans. The pipe character's encode is %7C .
So, change this:
<link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'>
To this:
<link href='http://fonts.googleapis.com/css?family=Changa+One%7COpen+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'>```
Victor Montemayor
9,363 PointsI wish I had an answer, but I just came across the same error.
tinaf
6,785 PointsIt's frustrating.Please tell me if you find a solution.
Daniella Conley
1,568 PointsDaniella Conley
1,568 PointsI was wondering the same thing...