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 trialmarsha grasett
9,995 PointsLink to second slide in wmslider
(1) Have a single page with portfolio thumbnails.
(2) Another page with the wmslider with 9 large porftolio images (with {slideshow: false, slideToStart:0} )
The link from the first thumbnail on page (1) links perfectly to the first image of the slider on page (2)
Is there a way to link from the second thumbnail on page (1) to the second image of the slider on page (2)
I can't figure this out:(
12 Answers
Andrew Chalkley
Treehouse Guest TeacherHave you got your site uploaded anywhere?
marsha grasett
9,995 PointsNo I don't Andrew :(
marsha grasett
9,995 PointsThis might help -
http://flexslider.woothemes.com/thumbnail-controlnav.html
This example has the slider with thumbnail on one page.
I want the thumbnails on one page and when clicked go to the slider on another page.
Does this make sense?
marsha grasett
9,995 PointsPerhaps this is clearer:
The 1st thumbnail (of 9) on Home page takes you to the Portfolio page with the slider. (with previous and next btns and pagination. Works great.) By defualt the slider starts with 0 which is the larger version image of 1st thumbnail.
When I click on 2nd thumbnail on Home I would like it to take me to the Portfolio page with the slider starting at the 2nd image.
On the 2nd thumbnail I though it might be adding a # - <a href="myportfoliowithslider.html#2ndimage">
But it would have to do have something added to the js like a load _blank or .... ?
marsha grasett
9,995 PointsAnybody? :(
Andrew Chalkley
Treehouse Guest TeacherHi Marsha,
You could link to the second page with a #someSlideNumber1 at the end of each link from the thumbnail.
In your options you have:
slideToStart: 0
You could swap it out with a variable called slideNumber
. So before you set the options you could try and figure out the window.location.hash
and set the slideNumber
to the correct slide number.
Regards Andrew
marsha grasett
9,995 PointsThanks Andrew! will try to figure out the window.location.hash That's my Friday night's project ;)
Andrew Chalkley
Treehouse Guest TeacherExtra credit!
marsha grasett
9,995 PointsMoved on to Anything Slider. It jumps.
But it's butt ugly.
Now to figure out how to change it. More jquery ... arghhhhh
Andrew Chalkley
Treehouse Guest TeacherFinding the "just-the-right" plugin can be a pain! Best of luck!
marsha grasett
9,995 PointsI will be the Queen of Sliders!