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!
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!
Try something like this in your Childtheme: style.css -
body{ background:url(../images/your_background.png) repeat-x;}
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:
body{
background:url(../images/body_bg.jpg);
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.
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:
CHILD THEME FOLDER
IMAGES FOLDER
functions.php
style.css
then you'd use
body{ background:url(images/body_bg.jpg); }Thanks, that did it! Duh! :)
This topic has been closed to new replies.