Created
October 18, 2012 15:04
-
-
Save mattonomics/3912424 to your computer and use it in GitHub Desktop.
Add CSS to Thesis via the CSS filter
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 | |
// add css using the thesis_css filter | |
class your_skin_class extends thesis_skin { | |
function construct() { | |
add_filter('thesis_css', array($this, 'add_css')); | |
} | |
function add_css($css) { | |
$import = "@import url(http://fonts.googleapis.com/css?family=Lora|Oswald);\n"; | |
$css = $import . $css; | |
return $css; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment