in header.php, instead of:
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
try and use something like this:
<?php if( is_page('a different page 1') { ?>
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style_page_1.css" type="text/css" media="screen" />
<?php elseif( is_page('a different page 2') { ?>
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style_page_2.css" type="text/css" media="screen" />
<?php } else { ?>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<?php } ?>
for details see:
http://codex.wordpress.org/Conditional_Tags
http://codex.wordpress.org/Conditional_Tags#A_PAGE_Page
http://codex.wordpress.org/Template_Tags/bloginfo
It doesn’t work, it says there is an unexpected ‘{‘
Does anyone really have working code that does this?
<?php if( is_page('a different page 1') ){ ?>
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style_page_1.css" type="text/css" media="screen" />
<?php elseif( is_page('a different page 2')) { ?>
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style_page_2.css" type="text/css" media="screen" />
<?php } else { ?>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<?php } ?>
try this now.