schtonn 7b875638f4 Site updated: 2020-05-19 11:14:08 4 years ago
..
source 7b875638f4 Site updated: 2020-05-19 11:14:08 4 years ago
LICENSE f8b3c6bb88 Site updated: 2020-04-24 21:47:42 5 years ago
README.html 7b875638f4 Site updated: 2020-05-19 11:14:08 4 years ago

README.html

fancyBox 3 for NexT


If you want fancybox v2, please go to theme-next-fancybox


Installation


Step 0 → Delete fancybox 2 (if you want to upgrade from v2)


$ rm -rf themes/next/source/lib/fancybox

If you want to use the CDN instead of clone this repo, please jump to the Step 3.


Step 1 → Go to NexT dir


Change dir to NexT directory. There must be layout, source, languages and other directories:


$ cd themes/next
$ ls
bower.json _config.yml docs gulpfile.coffee languages layout LICENSE.md package.json README.md scripts source test

Step 2 → Get module


Install module to source/lib directory:


$ git clone https://github.com/theme-next/theme-next-fancybox3 source/lib/fancybox

Step 3 → Set it up


Enable module in NexT _config.yml file:


fancybox: true

And, if you wants to use the CDN, then need to set:


vendors:
...
fancybox: //cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.js
fancybox_css: //cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.css

Update


$ cd themes/next/source/lib/fancybox
$ git pull