• Nick

    (@nicholasdstevensmecom)


    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

    (@nicholasdstevensmecom)

    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.