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
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
Written by
Related to
One line 11 I changed light_typekit_inline() to theme_typekit_inline() to get it to work
Ah, thanks. Copypasta. Fixed it up.
Worked like a charm. Very nifty function wp_script_is … didn’t know about that one!
Many thanks
I’m for code snippet against plugin overkill.
I needed exactly this! Thanks for the snippet. :-)
To add a second or third font, would I repeat the whole snippet in functions or is it easier than I’m guessing?
That should load all the fonts you have set for the site.