twodinks.com

WordPress

A different way to include stylesheets

by 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.

Leave a Comment more...

Why limit yourself to Thesis Hooks?

by on Oct.15, 2010, under Snippets, Thesis, WordPress

Nuh uh. Not when you can start using WordPress Action Hooks to get more done!

Leave a Comment more...

Use hook to add another specialized style sheet

by 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');

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!