Created
June 4, 2015 22:50
-
-
Save ScottSmith95/1dccf836d79301c1d449 to your computer and use it in GitHub Desktop.
Replace Decode's font with a Typekit font
This file contains hidden or 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
<?php | |
function decode_child_remove_font() { | |
wp_dequeue_style( 'decode-font-stylesheet' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'decode_child_remove_font', 20 ); | |
function decode_child_add_typekit() { | |
echo '<script type="text/javascript" src="//use.typekit.net/XXXXXXX.js"></script> | |
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>'; | |
} | |
add_filter( 'wp_head', 'decode_child_add_typekit' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment