[Resolved] Plugin calling js file with wrong path
I have a problem with one of my plugins, and I would need your help:
In the plugin, I call the files in wp_head this way:
wp_enqueue_script('jquery'); wp_enqueue_script( 'jqueryui', $this->dir.'/js/jquery-ui.js', array('jquery') ); wp_enqueue_script( 'categoryAccordion.ready', $this->dir.'/js/ready.js', array('jqueryui') );
However, When loading up blog, the source code shows me that these dir. variable does not work as I would like:
Any idea about what’s happening to me?
Thanks for your help!
- The topic ‘[Resolved] Plugin calling js file with wrong path’ is closed to new replies.