Home › Forums › Other › WordPress Headers › Re: WordPress Headers
April 27, 2012 at 1:09 pm
#101892
Anonymous
Inactive
For smaller page specific changes like that I use the WordPress body class feature.
<body <?php body_class(); ?>>
That dynamically adds classes to the body based on what type of page you’re on. As an example, when on the home page the body tag will get a class of “home” (among others), while on a single post page it will get a class of “single”.
So what you can do with that is just below where you call your background in the css add a new line using the class specific to the home page with the different background.
If you’re body has the background just use this:
.home {
background: stuff;
}
Or if your background is on say a wrapper you could use this:
.home .wrapper {
background: stuff;
}