Page 1 of 1
Re: Fancybox quit working
Posted: Thu Jan 30, 2020 7:16 am
by Pablo
You have two versions of the CSS and JS files.
Code: Select all
<link rel="stylesheet" href="fancybox/dist/jquery.fancybox.css">
<link rel="stylesheet" href="fancybox/dist/jquery.fancybox.min.css">
<script src="fancybox/dist/jquery.fancybox.js"></script>
<script src="fancybox/dist/jquery.fancybox.min.js"></script>
Only one JS and one CSS should exist in the folder.
Code: Select all
<link rel="stylesheet" href="fancybox/dist/jquery.fancybox.min.css">
<script src="fancybox/dist/jquery.fancybox.min.js"></script>
Also, gulpfile.js and package.json should be removed.
Re: Fancybox quit working
Posted: Thu Jan 30, 2020 3:40 pm
by protectourlands
Thank you Pablo. Those files were in the download. I didn't add them. Regardless I removed them and it still does not work for me.
http://www.icandyexperts.com/test/fancyboxtest.html
I am beginning to think I am cursed

Re: Fancybox quit working
Posted: Thu Jan 30, 2020 3:58 pm
by Pablo
Also, remove 'bower.json'
Re: Fancybox quit working
Posted: Thu Jan 30, 2020 4:23 pm
by protectourlands
Thank you Pablo
Tried that also. Still nothing.
The image to pop up is in the images folder on the server. The path is correct.
Is it the .ini file? Here is how mine is written:
Code: Select all
[attribute]
rel=$ID$
[copyrights]
company=Janis Skarnelis
url=http://fancybox.net/
[init]
script=$("a[rel^='$ID$']").fancybox({$SETTINGS$});
Re: Fancybox quit working
Posted: Thu Jan 30, 2020 5:48 pm
by Pablo
The ini file is correct.
https://www.wysiwygwebbuilder.com/forum ... 10&t=80753
Note that the files should be in the root of the fancybox folder.
Re: Fancybox quit working
Posted: Thu Jan 30, 2020 6:16 pm
by protectourlands
Thank you Pablo
I have the files in the fancybox folder that is on the lightbox folder in system.
WYSIWYG Web Builder > system > lightbox > fancybox > files
All the files being called upon in the head code are linked correctly and opening. I'm using the latest jquery 3.4.1 Everything is there.
It's a mystery. If I could see a Web Builder published page with this lightbox working I could probably figure it out.
Re: Fancybox quit working
Posted: Thu Jan 30, 2020 6:29 pm
by Pablo
Re: Fancybox quit working
Posted: Thu Jan 30, 2020 6:50 pm
by protectourlands
Perfect! Thank you Pablo. I got it working. I copied your fancybox .css and .js files from the head of your page and replaced my files with those. The only thing I can think of is I had a bad file from the fancyapp download.
I am truly grateful for the time you took to help me fix this.