Archived topic
different background images in header and body
9 replies · Started by Carlotta Gergely on February 24, 2015
Hi Tom, my customer a dancing-company, wants to have different background images in header and body on each site. So I tried e.g. for body with custom css and deactivated the body background in the background addon. But it doesn't work properly. Maybe I missed something I can't see at the moment. example in custom css:
body {
background: url('wp-content/uploads/2015/02/bg_body_blau.png');
width=100%;
}
This is the site - currently the background is set with the background addon:
http://www.tsbasilisk.ch
I am using exhibit as client theme.
Thanks for your feedback
Carlotta
Hi Tom, I finally got it - it works, no help needed anymore!
Thanks
Carlotta
Glad you sorted it out! :)
Hi Tom,
I am sorry, but I didn't. I tried with body background first. It works for the home page but not for the other ones. Here is what I put in custom css:
body {background-image: url(http://tsbasilisk.ch/wp-content/uploads/2015/02/bg_body_blau.png); background-size: 100%; !important}
}
body.page-id-36 {
background-image: url(http://tsbasilisk.ch/wp-content/uploads/2015/02/bg_body_rot.png); background-size: 100%; !important}
}
css for first page is active and it works but it seems that my reference for the second page is not working at all. What did I wrong?
Thanks for your feedback
Carlotta
css for home page
Can you link me to the page-id-36 page?
it's the second one on tsbasilisk.ch named standardtaenze
this is the link http://tsbasilisk.ch/standardtaenze/
Where are you adding the custom CSS with the page ID? I'm not seeing it.
it's in custom css plugin but shame on me, I had a second "}" after the first css with the blue background and didn't recognize it. So the second one for page-id-36 was simply ignored. Now it works and I appologize to bother you with this.
Thank you for your patience with me, Tom.
Carlotta
No problem! Glad you sorted it out :)