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

Slideshow attempt

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

You can do it either way, depending on what you are most comfortable with. I will say though that if you know how to do it, coding one in is going to have the best performance/flexibility. I'm not sure if the plugins are going to easily allow you to reference a link to an element on the page so you'll have to test that out. You can easily write a simple javascript function using scrollTo which will scroll down to the element on the same page.

Here are a few examples of what is out there:

Self Coded: http://www.woothemes.com/flexslider/ http://kenwheeler.github.io/slick/

WordPress Plugin: https://www.metaslider.com/ https://wordpress.org/plugins/soliloquy-lite/