Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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

[SOLVED] Different background per page id


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Sep 22, 2009, 03:01 PM
AJKock
 
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
  #2  
Old Sep 22, 2009, 05:44 PM
juggledad's Avatar
juggledad
 
22,049 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support

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

Bookmarks

Tags
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 01:13 PM
[SOLVED] Background for page menu bar gbb Page & Category Menu Bars 7 Dec 28, 2010 04:15 PM
Background image for page menu? blueprairie Page & Category Menu Bars 10 Dec 1, 2009 10:02 PM
Page Menu background stephiemarie78 Page & Category Menu Bars 2 Jul 22, 2009 09:31 PM
Changing repeated background image forces each page to reload background doctorrobert Atahualpa 3 Wordpress theme 8 Feb 15, 2009 06:36 AM


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


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