Support inline without disrupting normal a href URLs
The solution is to support a custom attribute, such as data-fancybox-href, as Fancybox 2 does. With those you leave the href as it is, so there is no loss of functionality. It can be almost added by changing line 108 of
href = selectedOpts.orig.attr('data-fancybox-href') || selectedOpts.href || (obj.nodeName ? $(obj).attr('href') : obj.href) || null;
By default that file isn’t used, so to test it you need to remove
.packfrom line 424 of
easy-fancybox-class.php. In my tests the above patch worked otherwise, but .fancybox-wrap was stuck with
width: 20pxfor some reason, so unfortunately it’s not usable yet.
- The topic ‘Support inline without disrupting normal a href URLs’ is closed to new replies.