TypeKit Code Snippet

Assuming you don’t want to use the TypeKit plugin, here’s how to enqueue the scripts directly from your theme:

https://gist.github.com/devinsays/fb8bee935967cb673c40e854700a1569

Comments

7 responses to “TypeKit Code Snippet”

  1. One line 11 I changed light_typekit_inline() to theme_typekit_inline() to get it to work

    1. Ah, thanks. Copypasta. Fixed it up.

  2. Worked like a charm. Very nifty function wp_script_is … didn’t know about that one!

  3. Many thanks

    I’m for code snippet against plugin overkill.

  4. I needed exactly this! Thanks for the snippet. :-)

  5. To add a second or third font, would I repeat the whole snippet in functions or is it easier than I’m guessing?

    1. That should load all the fonts you have set for the site.

Leave a Reply

Your email address will not be published. Required fields are marked *