ThemeShaper Forums » Thematic


change the background of the body

(5 posts)
  • Started 13 years ago by annelies
  • Latest reply from waxpop
  • This topic is not resolved
  1. Hi there, if feel like a dummy. But I want to change the background of the body to an image. Now I am wondering where I should do this. I tried all different things in default.css but that doesn't work.

    thank you for helping!

    Posted 13 years ago #
  2. Try something like this in your Childtheme: style.css -

    body{ background:url(../images/your_background.png) repeat-x;}

    Posted 13 years ago #
  3. waxpop

    Hi, I'm also looking to do the same thing, which would seem pretty simple, but my background image is not showing up. I have a stylesheet set up in my child theme and the code looks like this:

    	background-repeat: no-repeat;
    	background-position: center top;
    	background-color: #281F09;}

    I have a folder within my child theme folder called images and a jpg called body_bg.jpg inside that. What am I doing wrong? The background color is showing up, just not the background image.

    Posted 13 years ago #
  4. you are doing the relative paths wrong. if you are working in your style.css file and you have an images folder in the same directory like so:


    then you'd use

    body{ 	background:url(images/body_bg.jpg);  }
    Posted 13 years ago #
  5. waxpop

    Thanks, that did it! Duh! :)

    Posted 13 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.