Skip to content

Instantly share code, notes, and snippets.

@mattonomics
Created October 18, 2012 15:04
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mattonomics/3912424 to your computer and use it in GitHub Desktop.
Save mattonomics/3912424 to your computer and use it in GitHub Desktop.
Add CSS to Thesis via the CSS filter
<?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