jaw@jawtemplates.com

How to Change Slide Direction in Bootstrap 3 Carousel

Open X_carousel.php files in ../goodstore/templates/simple-shortcodes/
On line 73 you should see tag.
Please insert there this code on line 74 (between <script></script> )

jQuery(document).ready(function () {
    jQuery('.carousel').each(function () {
        jQuery(this).carousel();
        var carousel = jQuery(this).data('bs.carousel');
        carousel.pause();
        jQuery(this).find('> .carousel-inner > .item:not(:first-child)').each(function () {
            jQuery(this).prependTo(this.parentNode);
        });
        // Override
        carousel.cycle = function (e) {
            if (!e) this.paused = false
            if (this.interval) clearInterval(this.interval);
            this.options.interval
            & amp;& !this.paused
            & amp;& (this.interval = setInterval(jQuery.proxy(this.prev, this), this.options.interval))
            return this;
        };
        carousel.cycle();
    });
});
  • Was this Helpful ?
  • yes   no

Leave a Reply

You must be logged in to post a comment.