codrops / MultiLevelMenu

A simple menu with multiple levels and an optional breadcrumb navigation and back button.
232 stars 83 forks source link

Wordpress issues #7

Closed TarikTz closed 6 years ago

TarikTz commented 6 years ago

I've implemented this to a wordpress theme but there is some kind of an error: Uncaught TypeError: Cannot read property 'backIdx' of undefined at MLMenu._init (main.js:150) at new MLMenu (main.js:73) at (index):639 at (index):678

In header.php I've included .css files In page.php menu structure has been added. In footer page I've included all .js files including modernizr file. (also tried with option to add it in header.php | not working )

I tried it on another website, which has a static structure and all works perfectly so not sure what could be causing this error.

Wordpress version is: 4.9.2