This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Reply To: Change Background Image?

#2204
Jason Bobich
Keymaster

Hello,

In CSS, image paths are always relative to the CSS file of where the styles are located.

So, for example if you have an image located here:

/assets/images/pattern31.gif

And you have a CSS file located here:

/assets/css/custom.css

To include that image would look like this:

background-image: url('../images/pattern31.gif');

Starting from the CSS file, you’re going up one directory with the .. into the “assets” directory. And then you’re moving into the “images” directory where the image is.