Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Kerry

    (@bluenotes)

    Hey Senzacija,

    There isn’t an option for that in the shortcode but I’ll see about adding it in a future update. In the meantime, if you’re comfortable with code, you can add it manually. In includes/shortcode-slider.php starting around line 67 you’ll see the js inline for flexslider. Here you can add additional options from the flexslider API.

    https://www.woothemes.com/flexslider/

    So in this case you would add animationSpeed: 600. The 600 is in milliseconds.

    // Load Flexslider API
    $shortcode_output = '<script type="text/javascript">
    	jQuery(document).ready(function($) {
    			$(\'#bne-slider-id-'.$slider_random_id.' .bne-testimonial-slider\').flexslider({
    				animation: "'.$animation.'",
    				smoothHeight: '.$smooth.',
    				pauseOnHover: '.$pause.',
    				controlNav: '.$nav.',
    				directionNav: '.$arrows.',
    				slideshowSpeed: '.$speed.',
    				animationSpeed: 600
    			});
    		});
    	</script>';
    

    Note that the last item does not have a comma at the end.

    Thread Starter senzacija

    (@senzacija)

    Awesome, thank you a bunch!
    Related to that, how can i make the changes stay and not get overwritten with future plugin update?

    And once again, great job!

    Thread Starter senzacija

    (@senzacija)

    Or, can you tell me how to disable the plugin from updating so the changes dont get overwritten?

    Plugin Author Kerry

    (@bluenotes)

    In this case, it will always be overwritten on plugin updates as you’re editing the core files. What you can do, but you have to keep track of it incase something cool is added later to the original or if the html markup changes, is to un-register the shortcode from the plugin and then add it again in your theme’s functions.php. This would let you totally take control over the output of the shortcode.

    This would go into your theme’s functions.php file. I didn’t copy and paste the whole thing here.

    // First, un-register the shortcode.
    remove_shortcode('bne_testimonials_slider');
    
    // New Shortcode Function - Make sure the name is different from the original.
    function my_bne_testimonials_slider_shortcode( $atts ) {
       ... rest of the shortcode contents....
    }
    add_shortcode( 'bne_testimonials_slider', 'my_bne_testimonials_slider_shortcode' );
    
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fade in speed’ is closed to new replies.