Fancybox 3

For a while now just over half of the visitors to mcaleavy.org have been coming from mobile devices and the image lightbox I was using, Fancybox, wasn’t really mobile friendly. It pops up a little window, and you really don’t want a little window on a teeny, tiny screen. Not great on a photography website.
 
Nothing else was suitable, and then Fancybox 3 turned up. But nobody had written a WordPress plugin for it. So I sharpened my pencil.
 
Lots of swearing and wrestling with JQuery and RegEx later and it works. It took 14 lines of code. They just took some finding.
Tagged with: , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*