I'm trying to use a different layout stylesheet for different page templates (Basically, keep main styling (style.css) and change from 2 column to 3 column layout(3c-fixed.css) I've tried many ways, but just can't seem to make it work, any help would be really appreciated.
I began with this post: href="http://themeshaper.com/thematic/guide/?page_id=101
I've tried adapting this post by changing the is_page('page#') conditional tag to the is_page_template(page-template.php) (this code is copied directly from my functions.php file in my childtheme directory -- my .css file is located in the same directory):
function childtheme_blogcss(){
if (is_page_template('news.php')) { ?>
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo
bloginfo('stylesheet_directory') ?>/blog.css" /> <?php
}
}
add_action('wp_head','childtheme_blogcss');
This results in FireFox ignoring the 3c-fixed.css stylesheet all together, but keeping the style.css file.
I then tried to use the action:
add_action('thematic_create_stylesheet','childtheme_blogcss');
and
add_filter('thematic_create_stylesheet','childtheme_blogcss');
but that resulted in no styling -- no style.css or 3c-fixed.css.
I really want to use the functions.php file and avoid creating 4 header.php files each calling a different .css file. I'm using the 0.9.6.2 Thematic theme with a simple childtheme I am creating.
Am I missing something? Any help would be great. Thank you.
If this helps:
- Skype = stvnscarboro
- AIM = stvnscarboro
- Twitter = stvnscarboro