Slider Revolution WP
09.27.2016
Pause all slider’s on the page:
1 2 3 4 5 6 7 8 9 10 |
jQuery(".rev_slider_wrapper").each(function(){ $this = jQuery(this); id_array = $this.attr("id").split("_"); id = id_array[2]; jQuery.globalEval('revapi'+id+'.bind("revolution.slide.onloaded",function (e) {revapi'+id+'.revpause();});' ); }); }); |
To start them up again:
1 2 3 4 5 6 7 8 |
jQuery(".rev_slider_wrapper").each(function(){ $this = jQuery(this); id_array = $this.attr("id").split("_"); id = id_array[2]; jQuery.globalEval( 'revapi'+id+'.revresume();' ); }); |