Vertoh

  1. Home
  2. Docs
  3. Vertoh
  4. Frequently Asked Questions
  5. How do I make the image slider into a slideshow?

How do I make the image slider into a slideshow?

Please activate Vertoh child theme and follow the instruction below:

Add the following code in child theme functions.php (vertoh-child/functions.php)

Please note, if your functions.php file is empty  without any php code, then you need to add below code with in a php open tag ie

<?php

add_action(‘wp_enqueue_scripts’, ‘load_additional_script’);
function load_additional_script() {
wp_enqueue_script(‘customScript’, dirname( get_bloginfo(‘stylesheet_url’) ) .’/js/custom.js’, array(‘jquery’), true );

}

Create a js folder with in the vertoh-child theme and create custom.js file within the vertoh-child/js folder.

Add the following script in that js file

jQuery(document).ready(function ($) {

jQuery(‘.main-slider’).carousel({
pause: true,
interval: 5000
});
});

Save the file.

Was this article helpful to you? Yes No