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 trialSuzanne Cranen
7,497 PointsLink to portfolio item in lightbox
I was wondering, is it possible to make a url to a portfolio item, displayed in lightbox? So when I click the link the website will open and show the item in a lightbox immediately? The website is http://www.roy-bemelmans.com/projects/ and it is build in wordpress and the lightbox we're using is iLightbox.
1 Answer
Kevin Korte
28,149 PointsSure, it's possible. Top of mind how to do it would be on your single page template, you're going to somehow have to grab the identifier for the correct image from the url, and when the page loads, initiate the lightbox plugin with the correct information about what should be displayed based on what's in the url.