Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Nick Zachary
Nick Zachary
6,816 Points

How do I set my images for absolute pathing? - wordpress

Hi, How do I set my images for absolute pathing? - wordpress I have images on my desktop that I want to upload to my wordpress website. How do I get the http link of my image?

Thanks -Nick

7 Answers

Nick Zachary
Nick Zachary
6,816 Points

example:I want to upload a background image to my WordPress website

John Locke
John Locke
15,479 Points

Hi Nick:

Personally, I just use Filezilla (a free FTP client) to upload images to my Uploads file. The same thing happens if you use the Add Media option in the Media Library view or when you're writing a post in Wordpress. My absolute paths usually end up looking something like this:

background-image: url("http://www.mysite.com/wp-content/uploads/2013/03/myimage.jpg")
Nick Zachary
Nick Zachary
6,816 Points

.entry ul li{ margin-top:50px; font-weight:bold; margin-right:255px; padding-right:45px; background:url("http:www.qoostudio.com/wp-content/uploads/2013/03/badgeiconweb.png");
}

I'm trying to make a icon for a bullet in my list, but I can't seem to get it to work. I've tried doing list-style-image instead of background, but that didn't work also. Is there a problem in my code? Is this task possible using Filezilla?

John Locke
John Locke
15,479 Points

Oops. My bad. The beginning of the absolute path should be http:// not http:

What page are you trying to set that on? Home page?

John Locke
John Locke
15,479 Points

Nick:

Here's the answer: .entry ul li { list-style-image: url("http://www.qoostudio.com/wp-content/uploads/2013/03/icon.png"); }

Nick Zachary
Nick Zachary
6,816 Points

Thank you very much, SOLVED!

John Locke
John Locke
15,479 Points

No problem Nick. You will find that being able to Google the right solutions to the problem you are facing is a big skill of developers that not enough people mention.