CSS theme question
-
Alright so I’m going to have a few versions of my theme, and depending on which page of my site you’re on, there will be a different colored header image.
From a previous post, I determined that I should used conditional statements such as these below:
<?php if ( is_page("Dogs") ) : ?>
<img src="img/dogs.jpg" />
<?php elseif ( is_page("Cats") ) : ?>
<img src="img/cats.jpg" />
<?php elseif ( is_page("Turtles") ) : ?>
<img src="img/turtles.jpg" />
<?php endif; ?>
My question is, however, before when making a CSS layout, I would specify the header image in the style.css file. how do I do this with all of this logic it has to go through. Basically, how should I set up my header file and style.css? Thanks guys
- The topic ‘CSS theme question’ is closed to new replies.