Fancybox 3 options
-
Hi,
I just started using Fancybox 3 for Folder Gallery and I want to be able to change some Fancybox options. For example, idleTime (the time the navigation buttons etc, are shown before they are removed) is set to 3 sec., which is really short.
Changing Fancybox 3 options can easily be done by adding lines to the file folder-gallery/js/fg-fancybox3.js – but it would of course be much better if I can handle this without changing the plugin files.
So I added a copy of fg-fancybox3.js to my theme. Dequeueing the original fg-fancybox3.js file works, if I use the ‘get_footer’ hook, but I do not succeed getting my own copy of fg-fancybox3.js activated. I understand that Folder Gallery loads this file only on pages where the plugin is actually being used, so I can imagine this is a little more complicated than a simple enqueue.
Are there any suggestions what I should do? Thanks for any help!
- The topic ‘Fancybox 3 options’ is closed to new replies.