Slides stuck on loading? Plugin conflict
-
Hello.
On https://www.gamingprotocol.net , it seems the Twitch.Tv plugin I am using is causing a conflict with the Slides as it sticks on loading.I put some money towards the twitch plugin, so I don’t want to disable it.
From googling, it’s a jquery conflict?
Would anyone be able to help with fixing it please? I’m able to post bits of the Twtich plugin code.Here’s part of the widget.php for the Twitch plugin
//We load jquery manualy because other scripts might try to load jquery later wich breaks this plugin. wp_register_script( 'twitch_widget_jquery', site_url() . '/wp-content/plugins/' . $p[0] . '/script/jquery.min.js' ); wp_register_script( 'twitch_widget_script', site_url() . '/wp-content/plugins/' . $p[0] . '/script/twitch_widget_load.js' ); wp_enqueue_script( 'twitch_widget_jquery' ); wp_enqueue_script( 'twitch_widget_script' );
There’s also the twitch_widget_load.js
jQuery(document).ready(function() { //The document is ready, find the widgets. jQuery(".twitch_widget").each(function(i, widget) { //We got the widget, do something with it! var data = jQuery(this).data("data"); var data_arr = data.split(';'); //Load the channel data. jQuery(this).load(data_arr[4] + "twitch_ajax.php?channel=" + data_arr[0] + "&rand=" + data_arr[1] + "&ho=" + data_arr[2] + "&ha=" + data_arr[3]); }); });
With googling, I saw a suggestion to change a similar line like
jQuery(“.twitch_widget”).each(function(i, widget)
to
$(“.twitch_widget”).each(function(i, widget)
, but that was to no success
If any more is required, please say.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Slides stuck on loading? Plugin conflict’ is closed to new replies.