Need help? Check out our Support site, then

WP's directory? for adding background images

  1. Hi,

    Am using DePo Masthead theme,, and am working on the CSS to add a background image. Am familiar with HTML, but not so much with CSS yet. I have all the images I want/need on my ftp site. How do I access them in order for them to appear? I know the CSS code is: body {background: url(../image1.gif)}, but where do I tell the CSS what/where the url is?


    The blog I need help with is

  2. You replace the " ../image1.gif " with the URL of the image on your FTP site, or you upload the images to your wordpress media library and use the URL's from there (that would make for faster loading times).

  3. Thanks a lot...I've tried exchanging it with the ftp site, but would I have to write it out fully? ie "ftp://www.....jpg" And as for the wordpress media library, what's the url for that (sorry, probably real easy answer) I just keep it as: background image: url(.../image name.jpg)? Thanks again.

  4. Yes, you will need the absolute URL. If you upload the images to your media library, then you will have to get the actual absolute URL from the media library for the images. Typically it will look something like this: .

  5. Got it, thanks, it works in the w3schools try-out window. But still not in the preview for WordPress. :( Will have to find/solve it somehow. Have a good weekend.

Topic Closed

This topic has been closed to new replies.

About this Topic