| Views: 41
If you're using Fancybox
with dynamic image URLs
, you may find that the gallery/full screen pop-up is not working. Instead of the pop-up, when clicked, the source image is being loaded in the window as if Fancybox
wasn't initialised. This is because Fancybox
hasn't been able to determine the image type so doesn't know what to do. It's easily rectified.
For example, URLs
like this will cause this issue to surface: http://<some_domain>/image.php?id=1234
To allow these types of URLs
to work, simply add this parameter to your Fancybox
For example, this is what my Fancybox
initialisation looks like:
That's all there is to it!
Have comments or feedback on what I wrote? Please share them below! Found this useful? Consider sending me a small tip
Other posts you may like...