Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save logoscreative/4205886 to your computer and use it in GitHub Desktop.
Save logoscreative/4205886 to your computer and use it in GitHub Desktop.
Add TypeKit to WordPress without a plugin. Put this in your functions.php file.
/* Add TypeKit Fonts */
function logos_add_typekit() {
echo '<script type="text/javascript" src="//use.typekit.net/yourtypekitcode.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>';
}
add_filter( 'wp_head', 'logos_add_typekit' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment