In a post 4 days ago Chris helped Nick load one custom css file for one page, and one custom css file to be used for an array of pages. (See below)
I can't figure out how to get a custom css file for each of my four different pages. I got 1 alternate css file to work with my 2nd page, but when I paste the code into functions.php for the 3rd page that page just comes up blank on the blog.
(I'm really new at this so it's probably something I'm doing wrong with the php tags in functions.php, or something).
Thanks in advance for your help!
function my_stylesheet($content) {
global $wp_query;
if (is_page()) {
$pageID = $wp_query->post->ID;
if ($pageID == '332') {
$content = "\t";
$content .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"";
$content .= get_bloginfo('stylesheet_directory') . "/alternate.css";
$content .= "\" />";
$content .= "\n\n";
}
}
return $content;
}
add_filter ('thematic_create_stylesheet', 'my_stylesheet')