Support

Account

Home Forums Add-ons Gallery Field Flexslider onClick event? Reply To: Flexslider onClick event?

  • Hi @danfloun,

    Sorry, I assumed that you had already attempted to attach an click event to the image and it was not working.

    This is not really in the scope of ACF support but I will do my best to help you out. On the page that you have the slider you will need to add some custom JavaScript that adds a click event to the image that will invoke the lightbox.

    Without knowing how you have setup your slider or lightbox can’t really give you the exact code, but it will be something like this:

    
    $(function() { 
      $('.slide-image-class').on('click', function() {
        //Fire the lighbox code.
      });
    });

    Hope this helps. 🙂