Yes! You can use your gallery by specifying “data-callback” when including the Sirvoy widget. It is very similar to how you define a custom script for conversion tracking as seen in this article. The following events are currently available:

  • gallery_init – fires when displaying the search form. If you want to implement your own gallery, you can simply return false here to avoid loading our default gallery implementation.
  • gallery_open – fires when guest clicks on image. Similar to the gallery_init event, you should return false when getting this event to indicate that you will avoid running our default implementation. Then you can implement your customer logic here. Additional data that is given in the supplied object:
    • gallery_id – the gallery id the event triggers for
    • gallery – Array with image objects that looks like this:

Below is an example on how to use Fancybox instead of our default gallery. However, you can implement anything you like here, integrating the gallery into how you display other images on your website, thus making the look and feel harmonious.

Note: Make sure to replace “data-form-id” with your own booking engine ID. Also make sure to check the terms and license for Fancybox before using it, so that it works for your use-case: https://fancyapps.com/fancybox/3/