bootstrap Carousel not working in homepage in wordpress

Using WordPress, I have a page with a carousel with the following code:

<div class="swiper-container services-slider swiper-container-horizontal" data-cols="3" data-autoplay="1">
  <div class="swiper-wrapper" style="transform: translate3d(0px, 0px, 0px);">
    <article id="post-5854" class="swiper-slide swiper-slide-active" data-mh="ltx-services" style="width: 370px; height: 687.391px; margin-right: 30px;">

however this is not autoplaying in homepage Homepage, I copied this section in a test page and checked and its working fine test page

can anyone please tell me what could be wrong here, thanks in advance.

1 answer

  • answered 2021-06-18 20:26 Stig Kølbæk

    If you look at your console using developer tools, you will see that you have quite a couple of errors, and one of them is related to the carousel script Uncaught TypeError: Cannot set property 'slidesPerView' of undefined .. I suggest that you start by sorting out all the errors including the related one. :-)