fix(carousel): initialize Bootstrap carousels explicitly instead of relying on data-ride auto-init
This commit is contained in:
+10
-3
@@ -80,9 +80,16 @@ jQuery(function ($) {
|
|||||||
}());
|
}());
|
||||||
|
|
||||||
|
|
||||||
// testimonialSlider block removed — used flexslider for a widget that
|
// -------------------------------------------------------------
|
||||||
// does not exist in this rebuild. Hero carousel and employees carousel
|
// Bootstrap carousel — explicit init (data-ride auto-init is
|
||||||
// are both Bootstrap-3, initialized via data-ride="carousel".
|
// data-api based and was flaky on this custom Bootstrap-3 build
|
||||||
|
// once the flexslider script was removed).
|
||||||
|
// -------------------------------------------------------------
|
||||||
|
$('.carousel').carousel({
|
||||||
|
interval: 5000,
|
||||||
|
pause: 'hover',
|
||||||
|
wrap: true
|
||||||
|
});
|
||||||
|
|
||||||
}); // JQuery end
|
}); // JQuery end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user