• I’m having some difficulty trying to call different style sheets for different individual static WordPress “Pages”.

    I have this code in my header:

    <style type="text/css" media="screen">
    /* Calls the style sheets for each category */
    <?php
    $post = $wp_query->post;
    
    if ( in_category('1') ) {
    include(TEMPLATEPATH . '/assignments.css');
    
    } elseif ( in_category('2') ) {
    include(TEMPLATEPATH . '/television.css');
    
    } elseif ( in_category('9') ) {
    include(TEMPLATEPATH . '/workfromhome.css');
    
    } elseif ( is_page('338') ) {
    include(TEMPLATEPATH . '/television.css');
    
    } elseif ( in_category('7') ) {
    include(TEMPLATEPATH . '/clickables.css');
    
    }
    
    ?>
    </style>

    That works for categories, but not for static pages. It used to though. Could this be permalink related?

    thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Static Page style sheets’ is closed to new replies.