Forum Replies Created

Viewing 1 replies (of 1 total)
  • I know that this is kind of old, but this is what I did:
    1. Create a folder in your child theme and name it “js”
    2. Copy the spacious-slider-settings.js from the parent theme’s js folder into your new child theme js folder.
    3. Insert this code into your child theme’s functions.php

    /* Change slider settings file */
    
    add_action( 'wp_enqueue_scripts', 'custom_slider_settings', 100 );
    function custom_slider_settings()
    {
        wp_dequeue_script( 'spacious_slider', SPACIOUS_JS_URL . '/spacious-slider-setting.js', array( 'jquery_cycle' ), false, true );
        wp_deregister_script( 'spacious_slider', SPACIOUS_JS_URL . '/spacious-slider-setting.js', array( 'jquery_cycle' ), false, true );
    
        wp_enqueue_script( 'spacious_slider', get_stylesheet_directory_uri() . '/js/spacious-slider-setting.js', array( 'jquery_cycle' ), false, true );
    }

    Then you can change the timeout setting in the child theme’s spacious-slider-settings.js file to be whatever you want.

    Hope this helps =)

Viewing 1 replies (of 1 total)