Open Image in Lightbox

Need help? Please give a detailed explanation of your problem.
Post Reply
User avatar
Agalassi1792
AllPro Expert
AllPro Expert
Posts: 500
meble kuchenne Mikołów Knurów Czechowice-Dziedzice
Joined: Tue Nov 18, 2014 12:42 pm
Website: apwt.bluezenith.com

Open Image in Lightbox

Post by Agalassi1792 »

Hello,

Is there a way to click to open a picture in a lightbox? Let me know, thanks!
User avatar
NoahBaldwin
Support Team
Support Team
Posts: 108
Joined: Fri Jan 04, 2019 11:21 am
Website: www.allprowebtools.com

Re: Open Image in Lightbox

Post by NoahBaldwin »

This is possible!

Here's a link to a demo of this: https://demo.allprowebtools.com/Lightbox-Example/

Here's the code on the demo. You can also view the code in the HTML editor of the demo. Here's the link for that:
http://c220.allprowebtools-demo.com/con ... .php?id=40

Code: Select all

<p><a class="fancybox n1ed--selected" title="" href="/content/uploads/thank-you.jpg" data-fancybox-group="gallery-1"><img src="/content/uploads/thank-you.jpg?1579810863168" width="400" height="400" class=""></a></p>
<script type="text/javascript" src="//libdev.allprowebtools-dev.com/5.3/includes/fancybox/jquery.fancybox.pack.js?v=2.1.5"></script>
<script type="text/javascript">
	jQuery(function() {
		jQuery('.fancybox').fancybox();
	});
</script>
User avatar
Agalassi1792
AllPro Expert
AllPro Expert
Posts: 500
Joined: Tue Nov 18, 2014 12:42 pm
Website: apwt.bluezenith.com

Re: Open Image in Lightbox

Post by Agalassi1792 »

Okay great, thank you! I try this out.

I appreciate the help!
Post Reply