This support ticket is created vor 7 Jahren, 5 Monaten. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.
I am trying to: Get my featured images grid to appear like a lightbox overlay when you click on one of them.
I visited this URL: versteckter Link (look at the image grid on the bottom half under the 'Illustration' headline)
I expected to see: An lightbox overlay effect similar to the image grid on the bottom half of this page: versteckter Link. See attached screengrab too.
Instead, I got: I just don't now how to enact this into my View for the image grid.
I'm designing a client's site to be responsive. I need to integrate the lightbox function so that when you click on an image in the grid, an overlay appears where you see the full image and maybe a caption.
I created the grid in Toolset Views, so I probably just need to figure out what lightbox plugin to install and how to integrate that into the view. Any suggestions?
It really depends on which plugin you choose. Most of them work by wrapping your featured image thumbnail in a link, which defines the URL of the large image. When you click the link, this URL is used to load the larger image in an overlay. The structure of the link depends on the plugin you choose to show the lightbox overlay.
Lightbox2 is a fairly well-known and well-liked one: versteckter Link
To integrate this plugin you must download the source files, upload them to your site, then include them in the <head> of your document by enqueueing them in your theme's functions.php file. Then you can use the [wpv-post-featured-image] shortcode to generate the correct URLs for each link in your Content Template or View Loop Output editor. The href attribute will include the full-size image link, and the link content will be the thumbnail (or your own custom-defined) size:
Thanks for your quick reply. I think I mostly got it working now — hooray! Just a one more thing I hope to resolve: how do I add the image caption which is entered in the Media Library for the image? I followed the your shortcode reference instructions and changed my loop code (in my View Template) to this:
As Christian is currently on Vacation i'll be handling this ticket 🙂
Taking a look at your last reply you can only have 1 output per shortcode. So you're not able to do it like this output='url caption' instead you should have it like this output='caption'
Thanks but the suggestion of having output='caption' breaks the lightbox so that the image doesn't appear when you click on it — it's just a white box which appears.
Is there no way of having both the image and the caption below it?
Not sure if this is possible based on how the lightbox is being provided with the information. Does this lightbox support or have a way to display captions ?
So I just figured out how to blend their instructions with yours: I need to use the featured image shortcode twice. So for the record, this is how I solved it: