Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

[SOLVED] Different background per page id


  #1  
Old Sep 22, 2009, 03:01 PM
AJKock
 
8 posts · Aug 2009
[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
  #2  
Old Sep 22, 2009, 05:44 PM
juggledad's Avatar
juggledad
 
23,765 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 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:15 AM.


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