-
AuthorPosts
-
April 30, 2013 at 10:41 pm #22664May 1, 2013 at 5:40 am #116728
Hi,
Kriesi disabled the description or caption for prettyPhoto lightbox plugin. I’m having a hard time retrieving it. Let me tag the rest of the support team to help us out.
Regards,
Ismael
May 1, 2013 at 5:58 am #116729Thanks Ismael
May 1, 2013 at 7:44 am #116730Hi,
You can add a description which will come up as a tooltip when you hover over the thumbnails.
http://www.clipular.com/c?5525272=igbxklSRGC-RhPvXDxRmKuDlOAg&f=.png
I made a video showing in greater detail where to add that and its uploading at the moment.
Thank,
Nick
May 1, 2013 at 11:50 am #116731Hi Nick,
Yes, I know I can add a caption to the gallery images that will show up as a tooltip when the thumbnail is hovered over. But I was wondering if I could have that same caption appear on the lightbox image that appears once you click on the thumbnail and also if that caption could appear permanently underneath each thumbnail (in addition to the tooltip).
Thanks,
Matt
May 2, 2013 at 6:16 am #116732Hi,
Please open up /config-templatebuilder/avia-shortcodes/gallery.php and find line 178 than looks like
$thumbs .= " <a href='".$link[0]."' data-rel='gallery-".self::$gallery."' data-prev-img='".$prev[0]."' {$class} data-onclick='{$counter}'><img {$tooltip} src='".$img[0]."' title='' alt='' /></a>";
and change it to look like
$thumbs .= " <a href='".$link[0]."' data-rel='gallery-".self::$gallery."' data-prev-img='".$prev[0]."' {$class} data-onclick='{$counter}'><img {$tooltip} src='".$img[0]."' title='' alt='' /><span class='captions-gallery'>".$caption."</span></a>";
The prettyPhoto is a bit tougher, please hang on and let me know first how that worked out as I work on prettyPhoto.
Thanks,
Nick
May 23, 2013 at 3:01 pm #116733Any updates on allowing captions to prettyPhoto? It looks like the default WordPress Gallery shows the captions, but the short code galleries don’t show captions.
Thanks,
David
May 24, 2013 at 12:02 pm #116734The next update will fix the problem. For now you can download the updated file here: https://gist.github.com/InoPlugs/96aeac2b91db082bb944 and replace the content of wp-contentthemesenfoldconfig-templatebuilderavia-shortcodesgallery.php with the new code.
August 17, 2013 at 5:56 pm #116735Hey Dude,
I know there have been 2 updates since your latest post. We have the latest version, but captions are still not showing on the lightbox. What do you suggest? Same as mentioned above? On mobile, users having to select the thumbnail twice is a bit cumbersome (once and shows caption, twice and shows image. Also – is there not swipe capability with lightbox so mobile users can simply swipe vs trying to click a 1cm button with giant sausage fingers?
August 18, 2013 at 8:05 pm #116736Bumping this from yesterday
-
AuthorPosts
- The topic ‘Add caption to gallery lightbox’ is closed to new replies.