[resolved] Background Colors and Images in Theme Twentytwelve (3 posts)

  1. Oldbob
    Posted 3 years ago #

    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?

  2. paulwpxp
    Font hero
    Posted 3 years ago #

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

    html body,
    html > body.custom-background,
    body.custom-background-empty {
  3. Oldbob
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic