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 trial

HTML How to Make a Website Responsive Web Design and Testing Website Testing

Google font URL error

How do I fix the google font url error and pass the validator test

Daniella Conley
Daniella Conley
1,568 Points

I was wondering the same thing...

2 Answers

hchris
PLUS
hchris
Courses Plus Student 11,116 Points

I 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'>```

I wish I had an answer, but I just came across the same error.

It's frustrating.Please tell me if you find a solution.