WordPress.org

Ready to get started?Download WordPress

Forums

removing fancybox.js causes js menu crash (2 posts)

  1. StringerB
    Member
    Posted 1 year ago #

    Hello,

    I am currently using a js script for my main menu along with Fancybox.js (fancybox.net). I no longer use Fancybox but when I remove it from the enqueue list the menu script doesn't work.

    I don't think the menu script is linked somehow to the fancybox script, but the menu stops working only when I remove fancybox. I can remove any other script and it won't affect my menu. Removing fancybox does not seem to affect any other scripts

    Here is the script used for the menu:
    http://i46.tinypic.com/bjed0o.jpg

    I am only using javascript as a novice and I cannot tell if both scripts are related or not. And what may be the cause of this problem if they're not?

    Thanks in advance for your help

  2. StringerB
    Member
    Posted 1 year ago #

    Just a quick note to let you know that I have resolved the problem. I moved the menu script on top of the enqueue list and it now works with or without fancybox.

    If anyone knows why, I'd still be happy to know...

Topic Closed

This topic has been closed to new replies.

About this Topic