Easy FancyBox
[resolved] click on image will open modal... and disappears directly (3 posts)

  1. hans2103
    Posted 2 years ago #

    on our website we use Easy Fancybox for a while with succes.
    when you click on an image a modal box appears including the image.
    Since... euh... I don't know when exactly it doesn't work like it should be.

    - click on an image
    - modal box appears including the image
    - page refresh with only the opened image

    How can this be solved? I do want the modal box with the image. I don't want the image to be opened in _self



  2. RavanH
    Plugin Author

    Posted 2 years ago #

    Hi Hans, it's hard to debug this one... Have you tried switching off all other plugins? Or switching to the default theme for a second?

  3. hans2103
    Posted 2 years ago #

    • Tried switching off all other plugins -> no succes
    • Tried switching to another theme -> succes
    • Conclusion.... Some js in my theme is failing

    At the bottom of my theme I added some js to track the behaviour of my visitors.
    I want to track the events in Google Analytics on what kind of links they click. Is it a download file, is it an external link, is it an internal link or is it... whatever.

    when I remove this script from the page the easy-fancybox works like a charm.. therefor my conclusion is that something in this script is causing the problem.

    the script will be triggered if the href attribute of a anchor doesn't match javascript.
    it also has to trigger if it's a lightbox effect... if class=fancybox, the script shouldn't be triggered otherwise it fails.
    I've succeeded to change it.... now it works. (view source of the given site)

    thank you for the reply.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic