Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #22664

    Hi,

    I have some requirements for the gallery element and wonder if they are possible, and if so how:

    1) Add a caption to the larger lightbox image when a thumbnail is clicked on a gallery.

    2) Put a title or short descriptive text underneath each gallery thumbnail

    Thanks,

    Matt

    #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

    #116729

    Thanks Ismael

    #116730

    Hi,

    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

    #116731

    Hi 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

    #116732

    Hi,

    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

    #116733

    Any 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

    #116734

    The 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.

    #116735

    Hey 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?

    #116736

    Bumping this from yesterday

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Add caption to gallery lightbox’ is closed to new replies.