[Resolved] jquery enqueue script is not working properly. Please help.
So I am trying to upload a plugin to wordpress.org and the only way that I could get it to work is to use deregister_script(‘jquery’); and then add jquery back using enqueue_script.
Yes, don’t do that, because we will not accept any plugin that loads it’s own copy of jQuery, period. This is non-negotiable. Use the core jQuery only, or don’t be in the directory.
As for your problem with jQuery in core, WordPress loads jQuery in no-conflict mode by default, and your own code needs to not use the $ shortcut, or you need to use a no-conflict wrapper.
Does anyone have a suggestion to their response ?
- The topic ‘[Resolved] jquery enqueue script is not working properly. Please help.’ is closed to new replies.