• Resolved acostas

    (@acostas)


    The issue can be found here: https://gnb-architects.com/resi/kea-summer-house/
    It works when I disable all other plugins: No
    Meta Slider version: 3.3.7

    Hello.
    The Flex slider works perfect but when I use the arrows to go next/prev then the autoplay stops (when not using the arrows).
    Autoplay used to work fine until I tested the Coin Slider, R. Slides and Nivo Slider and changed back to Flex slider. Have checked a lot of stuff and footer.php has <?php wp_footer(); ?> but still can’t figure out whats the problem.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there,

    There does seem to be an issue with the slider restarting – it does seem to restart by itself as expected on occasion.

    You could try adding the following JavaScript code which will restart it a bit more explicitly:

    jQuery(document).ready(function($) {
                $('.flex-direction-nav a').live( "touchstart click", function() { $(this).parents('.flexslider').flexslider("play") });
              });
    

    Thanks,
    Dave

    Thread Starter acostas

    (@acostas)

    Thank you a lot, it worked!:D

    Cause i am not very familiar with scripts etc and I made a deep search for this, in case someone is wondering how to add this script on a child theme here are my steps:
    Make a file (for example) slider-restart.js with the script below and upload it to wp-content/themes/your-child-theme-name/js dir.

    
    jQuery(document).ready(function($) {
                $('.flex-direction-nav a').live( "touchstart click", function() { $(this).parents('.flexslider').flexslider("play") });
              });
    

    In your child theme editor (wp-admin/theme-editor.php) choose functions.php and paste these lines at the end:

    function theme_js() {
    wp_enqueue_script( 'theme_js', get_stylesheet_directory_uri() . '/js/restart-slider.js', array( 'jquery' ), '1.0', true );
    }

    add_action('wp_enqueue_scripts', 'theme_js');

    and you are done!

    • This reply was modified 8 years, 3 months ago by acostas.
    • This reply was modified 8 years, 3 months ago by acostas.
    • This reply was modified 8 years, 3 months ago by acostas.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘auto play stops after using the arrows’ is closed to new replies.