Title: [Plugin: Slideshow Gallery Pro] JavaScript conflict
Last modified: August 19, 2016

---

# [Plugin: Slideshow Gallery Pro] JavaScript conflict

 *  [Nick](https://wordpress.org/support/users/nicholasdstevensmecom/)
 * (@nicholasdstevensmecom)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-slideshow-gallery-pro-javascript-conflict/)
 * Hi,
 * The Slideshow Gallery Pro plugin is conflicting with a script I built for my 
   site. I’ve loaded my script by enregistering it in my functions.php and used ‘
   jQuery’ instead of ‘$’ in the js file, but it is still conflicting.
 * Fortunately, I don’t need to use both the plugin and the script on the same page.
   I would like to deregister the Slideshow Gallery Pro scripts for all pages except
   one like this:
 *     ```
       if ( !is_page('13') ) {
           wp_deregister_script('X');
       }
       ```
   
 * What would I enter for X in order to deregister the conflicting scripts?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  Thread Starter [Nick](https://wordpress.org/support/users/nicholasdstevensmecom/)
 * (@nicholasdstevensmecom)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-slideshow-gallery-pro-javascript-conflict/#post-1999430)
 * Okay, after looking at it a bit further the problem is that the plugin does work
   when my script does not address the jQuery noConflict() issues, i.e. when my 
   script is written like this:
 *     ```
       $(document).ready(function(){
            $(#somefunction) ...
       });
       ```
   
 * But the plugin doesn’t work when my script is written to address the noConflict
   function, i.e. like this:
 *     ```
       jQuery(document).ready(function($) {
           $(#somefunction) ...
       });
       ```
   
 * I tried to deregister my script on the page where the plugin is used, but the
   script still showed up in the head tag. I’m sorry I can’t provide a link because
   the site is hosted locally. Any suggestions?
 * Thanks!

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Slideshow Gallery Pro] JavaScript conflict’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/slideshow-gallery-pro.svg)
 * [Slideshow Gallery Pro](https://wordpress.org/plugins/slideshow-gallery-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/slideshow-gallery-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/slideshow-gallery-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/slideshow-gallery-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/slideshow-gallery-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/slideshow-gallery-pro/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Nick](https://wordpress.org/support/users/nicholasdstevensmecom/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-slideshow-gallery-pro-javascript-conflict/#post-1999430)
 * Status: not resolved