Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127
Different Stylesheet for Different Templates « ThemeShaper Forums

ThemeShaper Forums » Thematic

[closed]

Different Stylesheet for Different Templates

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

    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
    Posted 5 years ago #

  2. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512


    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512
    helgatheviking

    Moderator

  3. stvnscarboro
    Member

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

    Posted 5 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.


Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GA_Filter::spool_analytics() should not be called statically in /home/themes/public_html/forums/bb-includes/wp-functions.php on line 586

Strict Standards: Non-static method GA_Filter::spool_this() should not be called statically in /home/themes/public_html/forums/my-plugins/googleanalytics.php on line 183