WordPress
A different way to include stylesheets
by Dave on Oct.15, 2010, under Snippets, Thesis, WordPress
Here’s another way to link to stylesheets. It may be overkill for some things, but definitely useful for plugin developers. I’m thinking of sending the link to every plugin author who echoes 50 lines of CSS into my page headers. Thanks alot.
Why limit yourself to Thesis Hooks?
by Dave on Oct.15, 2010, under Snippets, Thesis, WordPress
Nuh uh. Not when you can start using WordPress Action Hooks to get more done!
Use hook to add another specialized style sheet
by Dave on Oct.15, 2010, under Snippets, Thesis, WordPress
As used on Paisley Farm’s site.
function add_recipe_styles() {
$sheet = get_bloginfo('template_url') . '/custom/recipes.css';
echo "\n";
echo '<link rel="stylesheet" href="' . $sheet . '" type="text/css" media="screen, projection" />;';
}
add_action('wp_head','add_recipe_styles');