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');
Drop shadow with CSS for all web browsers
by Dave on Oct.01, 2010, under Snippets
.shadow {
-moz-box-shadow: 3px 3px 4px #000;
-webkit-box-shadow: 3px 3px 4px #000;
box-shadow: 3px 3px 4px #000;
/* For IE 8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000')";
/* For IE 5.5 - 7 */
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000');
}