• Resolved BryleCuff

    (@brylecuff)


    Hey Customizr community!

    I can’t get my background image to work consistently. The code I had was working rather well but lately it’s been off an on. I’ve tried revising the CSS with other code that people have said worked but I haven’t had any luck.

    This is what I’m using:

    body {
    background: url(\"http://i263.photobucket.com/albums/ii151/CUFF3R/Background1-7.png\") no-repeat center center fixed;
    -webkit-background-size: cover;
      -moz-background-size: cover;
      -o-background-size: cover;
      background-size: cover;
      }

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,
    that code works,
    it’s just that you can’t use anymore quotes and double quotes (new wp theme guidelines) in the custom-css box (even escaping them with \).
    So if you want to use them you should put that css in your child-theme style.css.
    Though there are disputes on the net about the actual need to use quotes and double quotes for background url. Probably you can even remove them.

    Hope this helps.

    Giorgio25b

    (@giorgio25b)

    try this:

    body {
        background-attachment: fixed;
        background-image: url('http://i263.photobucket.com/albums/ii151/CUFF3R/Background1-7.png');
        background-position: center center;
        background-repeat: no-repeat;
    }
    Thread Starter BryleCuff

    (@brylecuff)

    THANKS GUYS! It works now!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Background Image Not Working’ is closed to new replies.