• Resolved Lizzy_ILUZIE

    (@lizzy_iluzie)


    Hey there! Thanks for the awesome plugin, I really like it!

    I’ve used it in a website, but when you’re in mobile mode the slider is not working smoothly. When you’re trying to scroll down a page you’re also moving content inside the slider, which makes it hard to navigate the page and the testimonials.

    I’d love it if I could just disable the ‘scrolling by swiping’, so the testimonials only scroll when the arrows are pressed. Is there a simple solution to achieve this?

    Thank you for your answer in advance!

    https://wordpress.org/plugins/bne-testimonials/

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

    (@bluenotes)

    Hi there,

    There’s not an option in the plugin to do that but you can add it manually. I’ll see about adding it as an option in a future update. If it’s something you need for now, you can go to the following file:

    /plugins/bne-testimonials/includes/shortcode-slider.php

    Then around line 68, you’ll see the settings for the slider js part. On the last part of it you would add:

    touch: false

    Add a comma at the end of slideshowSpeed: ‘.$speed.’,

    The whole section would then look like the following:

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

    (@lizzy_iluzie)

    YES! Thanks a million, that saved me LOADS of time! 😀 Is there somewhere I can donate to you?

    Plugin Author Kerry

    (@bluenotes)

    You’re welcome! No need to donate. However, you could always check out the pro version if you would like or simply give me a rocking review here. 🙂

    Thread Starter Lizzy_ILUZIE

    (@lizzy_iluzie)

    Done on the review 🙂 Love BNE Logos as well, looks great! Already have a project in mind to use it on 😉 Your stuff works nice & fast, I’m impressed 🙂 Are you maybe open to coöperate (I’m a designer and still learning code, so would be great if you could custom code WP themes for me)? If you are, please shoot me an e-mail at info@iluzie.nl. You can find the rest of my contact info on https://www.iluzie.nl/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable scrolling by swiping on mobile devices’ is closed to new replies.