Reply To: Fancybox stopped working properly on Chrome and only when user not logged in

Your Account / Forums / Easy FancyBox Pro / Fancybox stopped working properly on Chrome and only when user not logged in / Reply To: Fancybox stopped working properly on Chrome and only when user not logged in

September 7, 2014 at 1:11 pm #3345

Hi Jon, good to hear you solved the issue on your site and thanks for sharing 🙂

For future reference: the problem is that with the masked URL (even when you assign it the “fancybox” class) FancyBox does not know how to interpret the media type. The script ‘only’ scans for file name extension and decides it to be an image based when it finds .jpg/png/etc… With your masked URL, this is (probaly) not the case and FancyBox falls back to HTML content.

Two approaches are possible:
1. make the masked URLs re-use the image file name extension (and only replace the file path and name) or
2. force FancyBox to interpret the media type as image.

The first solution needs to be done in the theme or the URL masking plugin. The second can be done by activating the option “Include Metadata jQuery extension…” and appending the class like: class="fancybox {type:'image'}"

The next release of Easy FancyBox will include the possibility to use class="fancybox image" without the need to include the Metadata extension.