Hi Ian,
In your helpful and interesting article http://themeshaper.com/functions-php-wordpress-child-themes/ on child themes you mentioned "How To Add a Custom Stylesheet To Your WordPress Child Theme". In your example you used this code for an IEfix
function childtheme_iefix() { ?>
<!--[if lt IE 8]>
<link rel="stylesheet" type="text/css" href="<?php echo bloginfo('stylesheet_directory') ?>/ie.css" />
<![endif]-->
<?php }
add_action('wp_head', 'childtheme_iefix');
but you mentioned that it could be adapted to have different stylesheets for various parts of a site by using the conditional tags
my question and I'm sorry I don't have the knowledge to work this out for myself, is if I wanted to modify functions.php in my child theme so as to load a different stylesheet for a specific page or page template, what would the code need to be?
something like this?
<?php
function childtheme_css() { ?>
<?php if(is_page('1')) <link rel="stylesheet" type="text/css" href="<?php bloginfo('wpurl'); ?>/wp-content/themes/candy/style3.css" /> ?>
<?php }
add_action('wp_head', 'childtheme_css');
?>
(I know the above is wrong - as I don't know how to actually write this correctly)
if you can provide any help with this, I would really appreciate it.