Cannot change slider speed
-
I’ve installed the theme here: https://nathanagin.info/kinsey/
I’ve made a number of changes within the Theme Options and everything has been fine EXCEPT Slider Speed (pauseTime).
I see in the function.php file there is this script (just ONE instance of it)
<script type="text/javascript"> jQuery(window).load(function() { // nivoslider init jQuery('#nivo') .nivoSlider({ effect: 'random', animSpeed:700, pauseTime:<?php echo of_get_option('sliderspeed_text'); ?>, startSlide:0, slices:10, directionNav:true, directionNavHide:true, controlNav:true, controlNavThumbs:false, keyboardNav:true, pauseOnHover:true, captionOpacity:0.8, afterLoad: function(){ if (jQuery(window).width() < 480) { jQuery(".nivo-caption ").animate({"opacity": "1", "right":"0"}, {easing:"easeOutBack", duration: 500}); }else{ jQuery(".nivo-caption").animate({"opacity": "1", "bottom":"15%"}, {easing:"easeOutBack", duration: 500}); jQuery(".nivo-caption ").has('.sld_layout3').addClass('sld3wrap'); } }, beforeChange: function(){ jQuery(".nivo-caption ").animate({bottom:"-500px"}, {easing:"easeInBack", duration: 500}); //jQuery(".nivo-caption").delay(400).removeClass('sld3wrap'); jQuery('.nivo-caption ').animate({"opacity": "0"}, 100); jQuery('.nivo-caption ').delay(500).queue(function(next){ jQuery(this).removeClass("sld3wrap");next();}); }, afterChange: function(){ if (jQuery(window).width() < 480) { jQuery(".nivo-caption ").animate({"opacity": "1", "bottom":"0"}, {easing:"easeOutBack", duration: 500}); }else{ jQuery(".nivo-caption ").animate({"opacity": "1", "bottom":"15%"}, {easing:"easeOutBack", duration: 500}); jQuery(".nivo-caption ").has('.sld_layout3').addClass('sld3wrap'); } } }); }); </script>
When I load the site and look at the code on the page, I can see TWO javascripts running—the site seems to be only paying attention to the first (5000 milliseconds – no idea where this is coming from), not the second (11000 milliseconds – what I entered in Theme Options). How do I resolve this?
<script type="text/javascript"> jQuery(window).load(function() { // nivoslider init jQuery('#nivo').nivoSlider({ effect: 'random', animSpeed:700, pauseTime:5000, startSlide:0, slices:10, directionNav:true, directionNavHide:true, controlNav:true, controlNavThumbs:false, keyboardNav:true, pauseOnHover:true, captionOpacity:0.8, afterLoad: function(){ if (jQuery(window).width() < 480) { jQuery(".nivo-caption ").animate({"opacity": "1", "right":"0"}, {easing:"easeOutBack", duration: 500}); }else{ jQuery(".nivo-caption").animate({"opacity": "1", "bottom":"15%"}, {easing:"easeOutBack", duration: 500}); jQuery(".nivo-caption ").has('.sld_layout3').addClass('sld3wrap'); } }, beforeChange: function(){ jQuery(".nivo-caption ").animate({bottom:"-500px"}, {easing:"easeInBack", duration: 500}); //jQuery(".nivo-caption").delay(400).removeClass('sld3wrap'); jQuery('.nivo-caption ').animate({"opacity": "0"}, 100); jQuery('.nivo-caption ').delay(500).queue(function(next){ jQuery(this).removeClass("sld3wrap");next();}); }, afterChange: function(){ if (jQuery(window).width() < 480) { jQuery(".nivo-caption ").animate({"opacity": "1", "bottom":"0"}, {easing:"easeOutBack", duration: 500}); }else{ jQuery(".nivo-caption ").animate({"opacity": "1", "bottom":"15%"}, {easing:"easeOutBack", duration: 500}); jQuery(".nivo-caption ").has('.sld_layout3').addClass('sld3wrap'); } }, <script type="text/javascript"> jQuery(window).load(function() { // nivoslider init jQuery('#nivo') .nivoSlider({ effect: 'random', animSpeed:700, pauseTime:11000, startSlide:0, slices:10, directionNav:true, directionNavHide:true, controlNav:true, controlNavThumbs:false, keyboardNav:true, pauseOnHover:true, captionOpacity:0.8, afterLoad: function(){ if (jQuery(window).width() < 480) { jQuery(".nivo-caption ").animate({"opacity": "1", "right":"0"}, {easing:"easeOutBack", duration: 500}); }else{ jQuery(".nivo-caption").animate({"opacity": "1", "bottom":"15%"}, {easing:"easeOutBack", duration: 500}); jQuery(".nivo-caption ").has('.sld_layout3').addClass('sld3wrap'); } }, beforeChange: function(){ jQuery(".nivo-caption ").animate({bottom:"-500px"}, {easing:"easeInBack", duration: 500}); //jQuery(".nivo-caption").delay(400).removeClass('sld3wrap'); jQuery('.nivo-caption ').animate({"opacity": "0"}, 100); jQuery('.nivo-caption ').delay(500).queue(function(next){ jQuery(this).removeClass("sld3wrap");next();}); }, afterChange: function(){ if (jQuery(window).width() < 480) { jQuery(".nivo-caption ").animate({"opacity": "1", "bottom":"0"}, {easing:"easeOutBack", duration: 500}); }else{ jQuery(".nivo-caption ").animate({"opacity": "1", "bottom":"15%"}, {easing:"easeOutBack", duration: 500}); jQuery(".nivo-caption ").has('.sld_layout3').addClass('sld3wrap'); } } }); }); </script> }); }); </script>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Cannot change slider speed’ is closed to new replies.