How to install Fancybox 3?

Frequently Asked Questions about WYSIWYG Web Builder
Locked
User avatar
Pablo
 
Posts: 21508
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

How to install Fancybox 3?

Post by Pablo »

WYSIWYG Web Builder includes fancybox 1.3.4 as one of the default lightbox options which can be used in SlideShows, Photo Gallery, Images, YouTube, Vimeo, HTML5 video, link popups etc.
This can be configured in the Page Properties->Miscellaneous.

Due to license restrictions we are not allowed to distribute FancyBox v3.
However, if you copy the files from
https://fancyapps.com/fancybox/
to
Documents\WYSIWYG Web Builder\system\lightbox\fancybox
then the application will use these files instead of the included ones (FancyBox v1).

Note:
You only need jquery.fancybox.min.css and jquery.fancybox.min.js

You will also need to copy the file 'lightbox.ini' to this folder. This file include the default settings for the lightbox.
The file can be copied from the c:\Program Files\WYSIWYG Web Builder\lightbox\fancybox\ folder or you can create it yourself with the following content:

Code: Select all

[attribute]
rel=$ID$

[copyrights]
company=Janis Skarnelis
url=http://fancybox.net/

[init]
script=$("a[rel^='$ID$']").fancybox({$SETTINGS$});
Locked