filter_css() — Thesis Skin API Method

If you need to add CSS to either the beginning or end of your CSS file, you can accomplish this easily by adding a filter_css() method to your Skin.

To illustrate how this works, let’s add some new CSS to the end of our existing Skin CSS:

public function filter_css($css) {
	$new = 'my new css';
	return $css. $new;
}

The code in the above snippet adds my new css to the end of the CSS whenever the stylesheet file is written (which happens whenever the Design Options, Skin CSS, or Custom CSS are saved).

This type of structure is perfect for adding custom CSS for a Header Image or even inclusion declarations for things like @font-face rules.