How to stop a Slider We've got a HeroSlider on our website, and I no longer wish for the slider to slide (if that makes sense?). 

Currently the homepage is 3 slides, however when I remove the 2 slides I don't want, the 1st slide still tries to slide, and in doing so disappears.

I need it to be static.

As far as I can see the code for the slider is:

        var $heading    = $('.heroslider-text h2');
        var $para       = $('.heroslider-text p');
        var $btn        = $('.heroslider-text .btn');

        // Define animation sequence for hero elements.
        if($para.length){
            this.seq = [
                { elements: $heading, properties: { opacity: [1, 0], translateY:[0, 50] }, options: { duration: 250 } },
                { elements: $para, properties: { opacity: [1, 0], translateY:[0, 50] }, options: { delay:60, duration: 250, sequenceQueue: false } },
                { elements: $btn, properties: { opacity: [1, 0], translateY:[0, 50] }, options: { delay:60,  duration: 250, sequenceQueue: false } }
            ];
        } else {
            this.seq = [
                { elements: $heading, properties: { opacity: [1, 0], translateY:[0, 50] }, options: { duration: 250 } },
                { elements: $btn, properties: { opacity: [1, 0], translateY:[0, 50] }, options: { delay:60,  duration: 250, sequenceQueue: false } }
            ];
        }

    };

    this.runSequence = function(){
        if($('.heroslider-text').hasClass('animated')){
            $.Velocity.RunSequence(this.seq);
        }
    };
};


Thank you very much.
Maybe use a smarter slider? I frequently use Slick, which will only initialise when the number of items is > 1.

In addition, within my template code I would only include the markup required only for the slider if the number of slides is > 1, as I like to keep my markup clean. Something like:

  {% if entry.hero|length &gt; 1 %}&lt;div class="hero-slider"&gt;{% endif %}
    // Hero / Slider markup goes here…
  {% if entry.hero|length &gt; 1 %}&lt;/div&gt;{% endif %}