Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS code to access google font doesn’t always work

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #44822
    demelone
    Member

    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:

    http://cdpn.io/CfFEn or
    https://gist.github.com/anonymous/5593214

    thanks.

    #135315
    unasAquila
    Participant

    take a look [see](http://codepen.io/unasAquila/pen/vJiGt) works fine!

    #135329
    demelone
    Member

    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)
  • The forum ‘CSS’ is closed to new topics and replies.