Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter stgogos

    (@stgogos)

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    One of your plugins, Fourteen Extended Master, appears to be creating an issue that could be blocking Infinite Scroll:
    https://i.wpne.ws/gohL

    Could you try to deactivate that plugin, and see if it helps?

    Thread Starter stgogos

    (@stgogos)

    Thanks for the reply!

    Indeed. That was the reason!

    I also added the following custom code in functions.php file of my child theme to keep the auto slide:

    function add_script_in_footer(){
    ?>
    <script type="text/javascript" charset="utf-8">
        jQuery(document).ready(function(){
            var change_every = 5; // The number of seconds that the slider will auto-advance in
            var current = 1;
            function auto_advance(){
                if(current == -1) return false;
                jQuery('#featured-content .slider-next').eq(current % jQuery('#featured-content .slider-next').length).trigger('click', [true]);
                current++;
            };
            setInterval(function(){auto_advance()}, change_every * 1000);
        });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_script_in_footer');

    Thank you very much for the support!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Infinite scroll function doesn't work’ is closed to new replies.