1. Home
  2. Docs
  3. Conference Pro
  4. Frequently Asked Questions
  5. How to autoplay the slider?

How to autoplay the slider?

Please do the following to Autoplay the slider.

1 ) Open wp-content/themes/conference-pro-child/functions.php ,add the following code and save.

add_action(‘wp_print_scripts’, ‘conferenepro_child_custom_js’);
function conferenepro_child_custom_js(){
wp_register_script( ‘cpt-jquery-main-child1’, get_stylesheet_directory_uri() . ‘/assets/js/jquery.main.js’, array(
), false, true);
wp_localize_script(‘cpt-jquery-main-child1’, ‘cptJS’, array(‘ajax_url’ => admin_url(‘admin-ajax.php’), ‘is_fe’ => ef_fe_vue_prop(true, false)));

2 ) Open wp-content/themes/conference-pro-child and create subfolders /assets/js,now the folder structure should be like /wp-content/themes/conference-pro-child/assets/js

3 ) Copy /wp-content/themes/conferencepro/assets/js/jquery.main.js and paste to /wp-content/themes/conference-pro-child/assets/js ,open the file for edit.

4 ) Search for the following code
preventClicks: false

5 ) Replace it with the following code and save.
preventClicks: false,

6) Save the file.

Was this article helpful to you? Yes No