understrap/understrap-child

Data interval for hero carousel

m4landrino opened this issue · 2 comments

Hi, I'm trying to increase the interval between each slider element via js. Replacing the interval in theme.js doesn't work, because every time i compile it returns to the standard 5000. If I put the js code in a separate file and hook it in the functions.php the file result correctly attached but doesn't work either.
How can I increase it?

We've found that using the data-attribute method is the simplest: https://getbootstrap.com/docs/4.6/components/carousel/#via-data-attributes

You can add data-interval="10000" to the slider element, override the sidebar-templates/sidebar-hero.php file in your child theme.

Thanks, it works!