Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

[SOLVED] Different background per page id

Old Sep 22, 2009, 04:01 PM
8 posts · Aug 2009
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
Old Sep 22, 2009, 06:44 PM
juggledad's Avatar
23,762 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Sep 22, 2009 at 06:46 PM.
Old Sep 23, 2009, 04:10 AM
8 posts · Aug 2009
Thank you!! That works perfectly.


background image

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Off page background rosetrees Atahualpa 3 Wordpress theme 4 Oct 17, 2012 02:13 PM
[SOLVED] Background for page menu bar gbb Page & Category Menu Bars 7 Dec 28, 2010 05:15 PM
Background image for page menu? blueprairie Page & Category Menu Bars 10 Dec 1, 2009 11:02 PM
Page Menu background stephiemarie78 Page & Category Menu Bars 2 Jul 22, 2009 10:31 PM
Changing repeated background image forces each page to reload background doctorrobert Atahualpa 3 Wordpress theme 8 Feb 15, 2009 07:36 AM

All times are GMT -6. The time now is 09:31 AM.

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