Viewing 2 replies - 1 through 2 (of 2 total)
  • I want to increase the speed at which the images in the featured slider are shown. I am using the free version.

    pichon

    (@pichon)

    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 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do you slow down Spacious theme Slider’ is closed to new replies.