Calling alternative css from twentyten not working
-
https://www.safeproductions.co.uk/01wp/news/
All I am trying to do is to get the posts to display with a different style on blog pages.
This is driven from a child theme of twentyten. I have the following in the header.php which is currently located in the child theme folder but I have tried it, and the corresponding css stylesheet in both parent and child. I have also tried all the forms for specifying the page id. The css is not being called at all according to firebug. This is the first time I have used a child theme and I suspect I am screwing up the relationship between parent and child somewhere. Could someone give me a steer please.
lines 37-41 of header.php having removed the default style call
<?php if ( is_page('News') ) { ?> <link rel="stylesheet" href="https://www.safeproductions.co.uk/01wp/wp-content/themes/1SAFE/posts.css" type="text/css" media="screen" /> <?php } else { ?> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <?php } ?>
- The topic ‘Calling alternative css from twentyten not working’ is closed to new replies.