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

WordPress

Eric Nevitt
Eric Nevitt
4,914 Points

How do I add a graphics to my site?

I have built a theme and I'm to the point where I need to add a logo and some links and photos to the site.

Some of the photos I want to add to my footer. How do I do that? I want to make them editable.

Also how do I add a logo to my header? Posting the link to the logo isn't working.

2 Answers

At the bottom of this forum post reads in small print (under the Answer text box):

" You can format your answer with Markdown. If you need a Markdown Cheatsheet, we've got you covered." read from that list, to include links or code you want us to see. so example if you want to write a line of code first you have to press the space bar 4 times then start typing or paste that line. Each line needs to start 4 spaces then the code after the spaces. To post link to an image file you start with exclamation point.

They did this because its a way to keep the malicious code from user input in this text box you type in away. Cheatsheet is your friend. Use it and try and break it down into sections of what you are trying to accomplish. Be especially specific on what we are unable to read or see on our side.

Re the second question-make sure your images are in the same folder as your html and css files. The first I'm not so sure about because I'm still learning too. Best of luck.

James Barnett
James Barnett
39,199 Points

make sure your images are in the same folder as your html and css files

Using [absolute & relative paths](make sure your images are in the same folder as your html and css files) is the correct way to do this.