Open Image in Lightbox

Need help? Please give a detailed explanation of your problem.
User avatar
Agalassi1792
AllPro Expert
Posts: 461
Joined: Tue Nov 18, 2014 12:42 pm
Website: apwt.bluezenith.com

Open Image in Lightbox

Postby Agalassi1792 » Wed Jan 22, 2020 11:04 am

Hello,

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

Re: Open Image in Lightbox

Postby NoahBaldwin » Thu Jan 23, 2020 3:13 pm

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
Posts: 461
Joined: Tue Nov 18, 2014 12:42 pm
Website: apwt.bluezenith.com

Re: Open Image in Lightbox

Postby Agalassi1792 » Thu Jan 23, 2020 4:40 pm

Okay great, thank you! I try this out.

I appreciate the help!




Return to “Help / How to use AllProWebTools”



Who is online

Users browsing this forum: No registered users and 3 guests

cron