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

---

# Javascript/jQuery problem

 *  [KelvinAlf](https://wordpress.org/support/users/kelvinalf/)
 * (@kelvinalf)
 * [13 years, 2 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 4 replies - 31 through 34 (of 34 total)

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

 *  [mamta.magneto](https://wordpress.org/support/users/mamtamagneto/)
 * (@mamtamagneto)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/javascriptjquery-problem/page/3/#post-3360057)
 * Hello,
    I am using HTML5 jQuery Audio Player Pro version(2.1) in this plugin 
   it is not playing songs, and also I could not able to delete existing songs for
   the admin side….
 * please help me, its really urgent
    Any help should be appreciated Thanks,
 *  Plugin Author [Maeve Lander](https://wordpress.org/support/users/enigmaweb/)
 * (@enigmaweb)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/javascriptjquery-problem/page/3/#post-3360058)
 * [@mamta](https://wordpress.org/support/users/mamta/).magneto
    Please open a new
   thread for your issue because it is a totally different issue from what’s being
   discussed in this thread.
 *  [tippa](https://wordpress.org/support/users/tippa/)
 * (@tippa)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/javascriptjquery-problem/page/3/#post-3360059)
 * Hi Maeve, Any update yet?
    I really like the plugin but because of the jquery
   conflicts, I have to constantly disable it to make any changes to my site.
 *  [sam20gh](https://wordpress.org/support/users/sam20gh/)
 * (@sam20gh)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/javascriptjquery-problem/page/3/#post-3360060)
 * Am also waiting for next release.. Im using paid version and its conflicting 
   with WP ajax grid plugin, my project is been on hold for few weeks now but there
   is no sign of new version. I have emailed the developer week ago asking about
   new release but haven’t heard back….

Viewing 4 replies - 31 through 34 (of 34 total)

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

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: [12 years, 11 months ago](https://wordpress.org/support/topic/javascriptjquery-problem/page/3/#post-3360060)
 * Status: not resolved