WordPress.org

Support

Support » Themes and Templates » [Resolved] Background Colors and Images in Theme Twentytwelve

[Resolved] Background Colors and Images in Theme Twentytwelve

  • For some time I’ve been trying to put a simple background image behind my daughter’s blog. I can’t, and a cursory romp through Google suggests that nobody else can, either.

    In fact, the background comes out plain white, no matter what anybody does, including whoever wrote twentytwelve. If you plod through style.css, you’ll see many, many background statements, with elaborate gradients for background color, etc. None of it appears on the screen.

    Sorry, I haven’t promoted this stuff to my daughter’s site yet. Still hammering away on localhost.

    Anybody else curious about this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • paulwpxp
    Font hero

    @paulwp

    Try this code in your child theme’s style.css

    html body,
    html > body.custom-background,
    body.custom-background-empty {
    	background-color:red;
    }

    Many thanks–it worked! Well, what worked was the > sign. I had my
    background image coded thus:

    `body {
    url(images/mybackground.gif) no-repeat center center fixed;
    background-size: cover;
    }`

    changed ‘body’ to

    body > * {

    That did the trick.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Background Colors and Images in Theme Twentytwelve’ is closed to new replies.