Moodle Theme Tip: How to make the testimonial carousel cycle automatically in the Gourmet theme

The product listed in this blog post is deprecated and no longer available.
Looking for a Boost-based Moodle theme? Checkout our new products.

In our responsive Moodle theme Gourmet, there is a testimonial carousel section and the testimonials can be played manually. If you want to have the testimonials cycle automatically as shown in the figure below, you can make a small change in the theme JavaScript.

moodle-theme-gourmet-testimonials

Step 1

Open the theme JavaScript file in your text editor.

Gourmet > JavaScript > main.js

moodle-theme-gourmet-

Step 2

Find the line: $('#testimonials-carousel').carousel({interval: false, pause: "hover"}); and change the value of “interval” from “false” to a number.

The number is the time (milliseconds) to delay between automatically cycling a testimonial item. For example, if you want the cycling interval to be 5 seconds, the number you enter should be 5000.

moodle-theme-gourmet-code