[Resolved] different background images in header and body

Home Forums Support [Resolved] different background images in header and body

Home Forums Support different background images in header and body

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #79411
    Carlotta Gergely

    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

    #79432
    Carlotta Gergely

    Hi Tom, I finally got it – it works, no help needed anymore!
    Thanks
    Carlotta

    #79485
    Tom
    Lead Developer
    Lead Developer

    Glad you sorted it out! ๐Ÿ™‚

    #79774
    Carlotta Gergely

    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

    #80025
    Tom
    Lead Developer
    Lead Developer

    Can you link me to the page-id-36 page?

    #80107
    Carlotta Gergely

    it’s the second one on tsbasilisk.ch named standardtaenze

    #80119
    Carlotta Gergely
    #80209
    Tom
    Lead Developer
    Lead Developer

    Where are you adding the custom CSS with the page ID? I’m not seeing it.

    #80369
    Carlotta Gergely

    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

    #80474
    Tom
    Lead Developer
    Lead Developer

    No problem! Glad you sorted it out ๐Ÿ™‚

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.