Hello,
Hoping someone can help as I have been looking for a solution for a while now.
I want to launch a lightbox gallery from a text or button link but cannot figure out how to do it. I can get a single image to link from a text link but not a gallery so some code example would be very useful if possible.
I would prefer to link to the gallery from a button in the same style as the theme if at all possible.
Thanks in advance,
Andrew
I worked it out after trial and error:-) In case anyone is trying to do the same. The a class is for a button matching the theme colors. I have used this in the text area of a testimonial grid which works ok.
The rel=”prettyphoto[pp_gal] is the gallery code and can be changed to include multiple galleries, for example rel=”prettyphoto[mygallery1]. Just change the name of the rel link for the gallery and make sure all images you want ‘in’ that gallery also include the same rel attribute.
<span>Click here for photos</span>
<div style=”display: none;”>
</div>
Andrew
oops, looks like the post above was converted because it included html, any chance you could change it to show the code?
Thanks
Andrew
Hey!
You can add rel=”lightbox” on the anchor tag.
<a rel="lightbox" href="IMAGE OR VIDEO URL HERE">This is a lightbox link</a>
Regards,
Ismael
Thanks Ismael.
Andrew