WordPress.org

Support

Support » Themes and Templates » how can i add a background image in the background outside the template?

how can i add a background image in the background outside the template?

  • I wanted to know where in teh style css would I add a link to a wallpaper that I would like to use to have show up in the background, behind the blog, that would appear on the right and left, etc.

    Im using the default theme with no customizations to the style.css file.

Viewing 5 replies - 1 through 5 (of 5 total)
  • look for this;

    body {style.css
    background:#D5D6D7 url(images/kubrickbgcolor.jpg)

    change out the image with one of your own.

    you will also have to alter this; repeat scroll 0%;

    depending on the size of your image.

    So either no-repeat, repeat-x or repeat-y

    thanks, ill try it now!

    Is there a way to put the background directly into the post/page so it will still be there even if the theme changes? Using 2.2.1, I’ve tried to insert a div but the editor removes it.

    Thanks

    I don’t think that is possible, as how your blog views is determined by the CSS of the particular theme.

    Well I finally got it too work after fighting with the editor tooth and nail. I wrapped the content in a div with its own style attribute that defines the background. You can see the results here: http://errandexprss.com/sandbox/.

    The big problem is that the editor keeps “fixing” things everytime I save. Sometimes the div would disappear, othertimes it would turn into a p tag and wrap only the first paragraph. Very frustrating.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘how can i add a background image in the background outside the template?’ is closed to new replies.
Skip to toolbar