• Resolved rcwatson

    (@rcwatson)


    I’ve recently moved a client’s worpress site to GetPantheon.com hosting. Everything went fine except that the Google font enqueueing that I had in the CSS suddenly went wonky. When I click around in the site, the “Rye” font on H1 and H2 tags is replaced by Verdana after about the 3rd click (it varies).

    I’ve tried Pantheon support, but they don’t know why this is happening and said I might check here. I didn’t find anything in searches of the forum. Has anyone else had this issue?

    Here’s my font import code. It’s the very first line in style.css just after the template comments section:

    @import url(https://fonts.googleapis.com/css?family=Rye);

Viewing 1 replies (of 1 total)
  • Thread Starter rcwatson

    (@rcwatson)

    For the record I added the following bit of code and that fixed the problem.

    <script src=”//ajax.googleapis.com/ajax/libs/webfont/1.5.6/webfont.js”></script>
    <script> WebFont.load({ google: { families: [‘Rye’] } }); </script>”

Viewing 1 replies (of 1 total)
  • The topic ‘Google fonts not working on Pantheon hosting’ is closed to new replies.