0
I have a Carousel on the site, and I want it to run every ten seconds, as if the visitor had clicked the button to effect this process.
This is the site http://www.clinicafelipemeletti.com.br/
Here is all the JS plugin (WP Carousel Posts) https://jsfiddle.net/felipestoker/c3dL9tzj/
And here, the inclusion I made in this JS
window.setTimeout(function(){
document.getElementsByClassName("owl-dot").click();
}, 10000);
It’s not working. I wonder why.
Thank you so much for the Bootstrap tip. I won’t use it now, because this site wasn’t developed by me. That’s why I’m having trouble solving it. The code you gave me, will it work if I put it in this JS file? http://www.clinicafelipemeletti.com.br/wp-content/plugins/wp-posts-carousel/owl.carousel/owl.carousel.js?ver=2.0.0 If yes, where would be the ideal?
– Felipe Viero Goulart
Felipe, this code is really big. It seems that there are even functions there that will turn the carousel... But considering that you only need the quick solution of the problem, I would put as an asynchronous function in infinite loop off the carousel. I believe this is not the best solution, but it will solve your problem quickly!
– Giulio Denardi