ThemeShaper Forums » Thematic


Different Stylesheet for Different Templates

(3 posts)
  • Started 11 years ago by stvnscarboro
  • Latest reply from stvnscarboro
  • This topic is resolved
  1. stvnscarboro

    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="

    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

    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:

    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 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
    Posted 11 years ago #
  2. stvnscarboro

    This worked perfect! Thank you so much "Helga"!

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.