Created
December 4, 2012 16:34
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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