Themeforest

I get the error message – dcMegaMenu is not a function

This error can occur when the jQuery plugin file that creates the vertical mega menu has been overwritten because the jQuery library has been loaded a second time either by the theme files or another WordPress plugin.

Check your source code and your theme header.php file for any instance of the jQuery library being loaded.

jQuery should always be loaded the correct way using the WordPress wp_enqueue_script function – this will ensure that the library is only loaded once and before any jQuery plugins.

For instructions on how to add jQuery correctly see FAQ – Adding jQuery to your theme files using wp_enqueue_script

No related posts.

2 Comments

  • As soon as I post this, I find the culprit… figures. I was referencing http://cdn.jquerytools.org/1.2.5/jquery.tools.min.js for another menu and that seems to be what the hangup was.

  • I’ve checked for additional instances of jQuery being loaded and am still getting this error. The rollover isn’t working, and I suspect this is the culprit. Any other ideas on why this isn’t working?

    I’ve provided the link to the site where I’m working on the menu above. Thanks!

Leave a comment

To add code to your comments wrap the code text in [text][/text] tags