Created
July 8, 2010 01:55
-
-
Save diwakergupta/467550 to your computer and use it in GitHub Desktop.
add webfonts to thematic
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
<?php | |
function my_head_scripts($content) { | |
$content .= '<script type="text/javascript"' . | |
'src="http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js">' . | |
'</script>' . | |
'<script type="text/javascript">' . | |
'WebFont.load({' . | |
' google: { families: ["Cardo", "Crimson Text", "Vollkorn"] }' . | |
'});' . | |
'</script>'; | |
return $content; | |
} | |
add_filter('thematic_head_scripts', 'my_head_scripts'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment