CSS Question for Static Pages, Landing Page & Blog Posts
-
I am currently building a website and I need three separate page types. So far I have been successful within my template using the basic style.css and inner.css for the landing page and the basic site page templates. I would like all blog posts to have a different template but I am not sure where I apply the page template for the blog post itself. I have used the following code in my header but it is not working in this particular instance:
<?php if ( is_page_template('index.php')) { ?> <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/inner.css" /><?php } ?>
I have used single.php with the same result.
Ultimately, I would like a separate stylesheet for the blog post itself, where do I add this in the header?
- The topic ‘CSS Question for Static Pages, Landing Page & Blog Posts’ is closed to new replies.