• Hey all,

    I’m wondering if it’s possible to have different CSS stylesheets linked to different pages. In one of my pages, I only want my logo and content to appear and nothing else, but it’s difficult to get around this problem because the header.php is always going to call the elements I dont want in this page, and I can’t link the stylesheet in the actual page.

    Any help is greatly appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
  • <?php if( is_page ('Foo') ) :?><link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/foo.css" media="screen" />
    <?php elseif( is_page ('Bar') ) :?><link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/bar.css" media="screen" />
    [...]
    <?php endif;
    Thread Starter tculley

    (@tculley)

    This did not work. It gave me an error saying there was an unexptected ‘<‘

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Variable Stylesheets?’ is closed to new replies.