How to use multiple font from google apis in one url?

How to use multiple font from google apis in one url?
0

#1

I got this:

Error: Bad value //fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700|Ubuntu:400,700,400italic,700italic for attribute href on element link: Illegal character in query: | is not allowed.

Thanks!


#2

Hello,

I’m assuming that “I got this” means that a validator didn’t like it.

You can create two separate links, one for each font to avoid | character
OR
You can replace the | character with urlencoded %7C
OR
You can possibly ignore it depending on how much a stickler you are for 100% valid code in this instance

//fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700%7CUbuntu:400,700,400italic,700italic

You can usually Google search all or part of an error message and find some information and usually a fix.