Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   [SOLVED] Different background per page id (http://forum.bytesforall.com/showthread.php?t=3558)

AJKock Sep 22, 2009 03:01 PM

[SOLVED] Different background per page id
 
I have been reading through the threads and the closest I could come to a solution was something in the lines of:

Part 1:

<div id="imagecontainer" class="header-image-container"></div>


Part 2:

div imageContainer # {
background-position: top center;
background-repeat: no-repeat;
background-image: url (/wp-content/themes/atahualpa342/images/home-bg.jpg)
}

body.page-id-3 div imageContainer # {
background-position: top center;
background-repeat: no-repeat;
background-image: url (/wp-content/themes/Atahualpa/images/home-bg2.jpg);
}

What I want to do is NOT replace the header, I am using the header. I am just also trying to assign a different background image to a different page id.

Is the above code correct and if so, into which sections do I put it, because I have put Part 2 into CSS INSERTS, but I am not sure where Part 1 should go and if this is at all correct.

Help would be appreciated. Tx

juggledad Sep 22, 2009 05:44 PM

the background is applied to the body so use
HTML Code:

body.home {
background: #cc0000;
}
body.page-id-2 {
background: #ee00ee;
}

you could point at an image if you want

AJKock Sep 23, 2009 03:10 AM

Thank you!! That works perfectly.


All times are GMT -6. The time now is 05:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.