Tagged: x
-
AuthorPosts
-
October 19, 2016 at 7:07 am #1222159
erapisardiParticipantHI,
I have been looking for a solution to display a gallery in a lightbox when clicking on one image.
The threads I have been reading e.g. https://community.theme.co/forums/topic/lightbox-gallery-of-photos-on-a-button/ but they do not give me enough information.can you give me some help?
thanks
October 19, 2016 at 9:57 am #1222362
LelyModeratorHi There,
Thanks for posting in. Please check this article for guidance:https://community.theme.co/kb/shortcode-walkthrough-lightbox/
Hope this helps.
October 21, 2016 at 3:22 pm #1225864
erapisardiParticipantThank you.
but I did not succeed in creating an image that when clicked shows a slideshow in a lightbox.
the code illustrated in that page creates a text link that opens a gallery (not really well formatted).thanks
October 21, 2016 at 10:31 pm #1226215
FriechModeratorHi There,
First is copy this lightbox shortcode and paste it on a RAW content element.
[lightbox selector=".lbx" deeplink="true" opacity="0.875" prev_scale="0.75" prev_opacity="0.75" next_scale="0.75" next_opacity="0.75" orientation="horizontal" thumbnails="true"]I’d suggest you place this element at the bottom of the page so you can easily access it when you need to edit the shortcode and will not distract the layout of your page when you’re on Cornerstone.
And then add your images, make sure all images that part of the gallery is set as a LINK and the HREF field is empty.
Now to trigger the lightbox on those images add a class lbx on it.
Note that when adding a class lbx to an image element or any element make sure it is a link or else the entire lightbox gallery will not work.
Hope it helps, Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1222159 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>


