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

elliot stiller
283 PointsSlideshow anchor link
I am trying to create a slideshow on my homepage. This slideshow would have a headline on it. When somebody clicks on the image of the slideshow, I want it to ANCHOR LINK them to the article that is further down on the page. Is this possible?
Code i can use, or a plugin?
1 Answer
Tiffany McAllister
25,806 PointsYou would need to wrap the image with an anchor that links to the ID of the div or section you want it to link to. For example:
<a href="#section1"><img src="image_path_here1.jpg"></a>
<a href="#section2"><img src="image_path_here2.jpg"></a>
<a href="#section3"><img src="image_path_here3.jpg"></a>
<div id="section1">This is the section image 1 would link to</div>
<div id="section2">This is the section image 2 would link to</div>
<div id="section3">This is the section image 3 would link to</div>