Title: Javascript/jQuery problem
Last modified: August 20, 2016

---

# Javascript/jQuery problem

 *  [KelvinAlf](https://wordpress.org/support/users/kelvinalf/)
 * (@kelvinalf)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/javascriptjquery-problem/)
 * I was having a problem with the plugin conflicting with another plugin (NextGen
   Gallery). I emailed handhugsdesign as she had a similar problem and she helped
   lead me to my solution (thanks again!). Where the problem was at was with the
   following section of plugin.php:
 * >  function pro_scripts_method() {
   >  $query = $_SERVER[‘PHP_SELF’];
   >  wp_deregister_script( ‘hmp-jquery’ );
   >  wp_register_script( ‘hmp-jquery’, “
   > [http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js&#8221](http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js&#8221););
   >  wp_deregister_script( ‘drag-jquery’ );
   >  wp_register_script( ‘drag-jquery’,
   > plugin_dir_url( __FILE__ ).”player/js/jquery-ui-1.7.1.custom.min.js”,true);
   > if(strpos($query,’admin.php’)!==false){ wp_enqueue_script(‘hmp-jquery’); wp_enqueue_script(‘
   > drag-jquery’ ); } wp_register_style( ‘hmp-style’, plugin_dir_url( __FILE__ ).”/
   > includes/css/hmp-style.css”); wp_enqueue_style( ‘hmp-style’ ); }
   > add_action(‘admin_enqueue_scripts’, ‘pro_scripts_method’);
 * I replaced it with:
 * > function pro_scripts_method() {
   >  $query = $_SERVER[‘PHP_SELF’];
   >  if(strpos($query,’admin.php’)!==false){
   >  wp_enqueue_script(‘jquery-ui-sortable’);}
   > wp_register_style( ‘hmp-style’, plugin_dir_url( __FILE__ ).”/includes/css/hmp-
   > style.css”); wp_enqueue_style( ‘hmp-style’ ); }
   > add_action(‘admin_enqueue_scripts’, ‘pro_scripts_method’);
 * Also I changed the following:
 * >  <link href=”<?php echo $pluginurl ; ?>includes/css/style.css” type=”text/css”
   > rel=”stylesheet” media=”screen” />
   >  <script type=”text/javascript” src=”[http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js”></script&gt](http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js”></script&gt);
   > <script type=”text/javascript” src=”<?php echo $pluginurl ; ?>includes/jquery-
   > jplayer/jquery.jplayer.js”></script>
 * It is now:
 * >  <link href=”<?php echo $pluginurl ; ?>includes/css/style.css” type=”text/css”
   > rel=”stylesheet” media=”screen” />
   >  <?php require_once ‘includes/ttw-music-
   > player.php’; ?>
 * This seems to have solved all my problems.
 * [http://wordpress.org/extend/plugins/html5-jquery-audio-player/](http://wordpress.org/extend/plugins/html5-jquery-audio-player/)

Viewing 15 replies - 16 through 30 (of 34 total)

[←](https://wordpress.org/support/topic/javascriptjquery-problem/?output_format=md)
[1](https://wordpress.org/support/topic/javascriptjquery-problem/?output_format=md)
2 [3](https://wordpress.org/support/topic/javascriptjquery-problem/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/javascriptjquery-problem/page/3/?output_format=md)

 *  [tippa](https://wordpress.org/support/users/tippa/)
 * (@tippa)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/javascriptjquery-problem/page/2/#post-3360036)
 * I am having the same issue with Lite Version 2.1 and NextGen.
 *  [mike022](https://wordpress.org/support/users/mike022/)
 * (@mike022)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/javascriptjquery-problem/page/2/#post-3360037)
 * the fact is i paid 28$ few days ago with that problem, is there a way to get 
   the right version, i send you a private message few days ago without any answer.
   you gave me the 2.0 and i bought that version one week and a half ago. So far,
   the 2.1 was ready in lite version. How come i got the 2.0 pro ?
 * i think that paying twice in two week will be too much for something that should
   work allready.
 *  Plugin Author [Maeve Lander](https://wordpress.org/support/users/enigmaweb/)
 * (@enigmaweb)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/javascriptjquery-problem/page/2/#post-3360038)
 * Latest version is 2.1 for both Pro and Lite… if you bought pro once you don’t
   need to buy it again, you can just upgrade – you would have been sent an email
   with the file or you can use the automatic update which appears in your plugins
   area.
 * [@tippa](https://wordpress.org/support/users/tippa/)
    Can you explain your NextGEN
   conflict in more detail please? On my test site I have nextGEN installed and 
   can’t see any problems?
 *  [tippa](https://wordpress.org/support/users/tippa/)
 * (@tippa)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/javascriptjquery-problem/page/2/#post-3360039)
 * The problem that I’m having is the html5 player plugin cause the drag and drop
   features of the nextgen gallery plugin not to work on the admin side. I have 
   to disable the html5 plugin in order to edit/create an album. If I don’t, when
   I try to add a gallery to an album, instead of dragging and dropping, my cursor
   just selects the text on screen.
 *  [mike022](https://wordpress.org/support/users/mike022/)
 * (@mike022)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/javascriptjquery-problem/page/2/#post-3360040)
 * thx for the upgrade but same problem as tippa..when trying to drag in nextgen
   manage album section, it just fall down at the bottom of the page,and cant drag
   anything.
 *  [Musicalman](https://wordpress.org/support/users/musicalman/)
 * (@musicalman)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/javascriptjquery-problem/page/2/#post-3360041)
 * Yep got this identical problem with ‘Easing slider lite’ mentioned in this thread:
 * [http://wordpress.org/support/topic/html5-jquery-audio-player-pro-conflicting-with-pro-easing-slider-lite?replies=3](http://wordpress.org/support/topic/html5-jquery-audio-player-pro-conflicting-with-pro-easing-slider-lite?replies=3)
 * Hope this gets fixed soon!
 *  Plugin Author [Maeve Lander](https://wordpress.org/support/users/enigmaweb/)
 * (@enigmaweb)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/javascriptjquery-problem/page/2/#post-3360042)
 * Ok thanks for reporting back guys – this helps a lot. Sorry about this… it is
   a jQuery conflict which is being caused by my use of jQuery in the backend admin
   console. I’ve tried a work-around in the latest 2.1 release which worked for 
   me in test environment, but obviously it’s not fixed it for everyone.
 * Thank you for your patience while I look into this further…
 *  [mike022](https://wordpress.org/support/users/mike022/)
 * (@mike022)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/javascriptjquery-problem/page/2/#post-3360043)
 * thx for your efforts
 *  [Steve Wells](https://wordpress.org/support/users/srwells/)
 * (@srwells)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/javascriptjquery-problem/page/2/#post-3360044)
 * You are loading jQuery improperly in your plugin which is the source of these
   jQuery issues. You need to be using the wp_enqueue_script function rather than
   loading jQuery manually/directly. See: [http://codex.wordpress.org/Function_Reference/wp_enqueue_script](http://codex.wordpress.org/Function_Reference/wp_enqueue_script)
 * Until you properly load jQuery, you will create conflicts and javascript errors
   with other plugins that are loading jQuery properly.
 *  Plugin Author [Maeve Lander](https://wordpress.org/support/users/enigmaweb/)
 * (@enigmaweb)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/javascriptjquery-problem/page/2/#post-3360045)
 * Thanks [@srwells](https://wordpress.org/support/users/srwells/).
 * In a nutshell, yeah I made a big boo boo here and built this plugin without a
   full understanding of how to include jQuery properly… I’m now aware of the problem,
   and I’ve been doing a lot of reading about how to include jQuery properly. I’m
   also getting some help on it from a more experienced plugin developer…. So…. 
   working on it… and it will be fixed properly ASAP.
 * Thank you to everyone who has helped identify the error, and sorry for the inconvenience!
   Learning curve for me! I appreciate your understanding and patience.
 *  [Musicalman](https://wordpress.org/support/users/musicalman/)
 * (@musicalman)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/javascriptjquery-problem/page/2/#post-3360046)
 * Glad to hear this main problem is now being worked on; respect!
 *  [mike022](https://wordpress.org/support/users/mike022/)
 * (@mike022)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/javascriptjquery-problem/page/2/#post-3360047)
 * me too,,,respect. will you name the fixed version 2.2 , just to be inform on 
   which version gonna be the jquery fixed one.
 * thx advanced
 *  Plugin Author [Maeve Lander](https://wordpress.org/support/users/enigmaweb/)
 * (@enigmaweb)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/javascriptjquery-problem/page/2/#post-3360048)
 * Thanks guys. Yep should be 2.2 … but will be very clear in the release notes 
   and changelog what’s been done to it so you can always check there.
 *  [tippa](https://wordpress.org/support/users/tippa/)
 * (@tippa)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/javascriptjquery-problem/page/2/#post-3360050)
 * Any update on this?
 *  [lindamcintosh](https://wordpress.org/support/users/lindamcintosh/)
 * (@lindamcintosh)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/javascriptjquery-problem/page/2/#post-3360054)
 * Any update on this? I like this plugin but it is creating jquery conflicts with
   other plugins. ETA on the 2.2? Not sure I’m code savvy enough to fix it on my
   own :/

Viewing 15 replies - 16 through 30 (of 34 total)

[←](https://wordpress.org/support/topic/javascriptjquery-problem/?output_format=md)
[1](https://wordpress.org/support/topic/javascriptjquery-problem/?output_format=md)
2 [3](https://wordpress.org/support/topic/javascriptjquery-problem/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/javascriptjquery-problem/page/3/?output_format=md)

The topic ‘Javascript/jQuery problem’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/html5-jquery-audio-player_2e2e2e.
   svg)
 * [HTML5 jQuery Audio Player](https://wordpress.org/plugins/html5-jquery-audio-player/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/html5-jquery-audio-player/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/html5-jquery-audio-player/)
 * [Active Topics](https://wordpress.org/support/plugin/html5-jquery-audio-player/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/html5-jquery-audio-player/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/html5-jquery-audio-player/reviews/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [jQuery UI](https://wordpress.org/support/topic-tag/jquery-ui/)

 * 34 replies
 * 10 participants
 * Last reply from: [sam20gh](https://wordpress.org/support/users/sam20gh/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/javascriptjquery-problem/page/3/#post-3360060)
 * Status: not resolved