Treehouse: Grow your CSS skills. Land your dream job.

code to access google font doesn’t always work

  • # May 16, 2013 at 1:00 pm

    i am building a wordpress site and should be able to resolve this problem. I put the following code in to ensure the website displays the font correctly even if not in an end-users font folder. i tested it and (oddly) it works in IE but not FireFox and Google Chrome (really?)
    i don’t know if the code is incorrect or something else is going on. would appreciate some feedback.

    i used pencode but not sure i did it correctly. i created an account but it didn’t seem to recognize it. do i need to provide anything else?
    i think the code is in both places: or


    # May 16, 2013 at 2:11 pm

    take a look [see]( works fine!

    # May 16, 2013 at 3:31 pm

    thanks! I guess the code:

    id=’google-fonts-css’ and media=’all’

    did not accomplish the same as defining the class in the css file and referencing it in the code (as you have shown)?

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

You must be logged in to reply to this topic.