Ready to get started?Download WordPress


how can i add a background image in the background outside the template? (6 posts)

  1. AmbitiousOne
    Posted 6 years ago #

    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.

  2. 4k
    Posted 6 years ago #

    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

  3. AmbitiousOne
    Posted 6 years ago #

    thanks, ill try it now!

  4. wbarnes
    Posted 6 years ago #

    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.


  5. 4k
    Posted 6 years ago #

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

  6. wbarnes
    Posted 6 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic