Currently, I am facing a challenge while incorporating a Bootstrap 4 Carousel on my website:
The issue arises from the fact that the Carousel requires the .active
class to be applied to the first slide in order for it to function properly. In my CMS setup, I have utilized a single template file for all slides, each containing dynamic content, which allows for an unlimited number of slides. However, I am unable to designate the initial slide with the .active
class without it being applied to all subsequent slides and causing a disruption in the carousel's functionality.
While I could use JQuery to add the class specifically to the first slide, I am exploring alternative solutions as I believe this limitation may be an oversight in Bootstrap's design.
Is there a workaround or solution available for this situation?