• I want to disable the click on the imgs on the slider..and also I want to make the slider auto play… how can i do this.. ?

Viewing 1 replies (of 1 total)
  • sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    Hi, If you have not yet done so, I would suggest creating a child theme so that any customizations you make will not be overwritten by a future theme update.
    Child Themes
    Child Theme creation plugins

    The settings for the Untitled slider is in a file in the parent /js folder called untitled.js . You will need to copy that file over into a /js folder in your child theme and edit it to change the properties. You can read more on the properties here.

    Next in your child theme functions.php file, you will need to dequeue untitled.js and then enqueue the new replacement file.

    function untitled_scripts() {
    wp_dequeue_script( 'untitled-script' );
    wp_enqueue_script( 'untitled-script', get_template_directory_uri() . '/js/untitled.js', array( 'jquery', 'untitled-flex-slider' ) );
    }

    To unlink the images in the slider, you will need to copy slider.php over to your child theme and edit the following line to remove the link related stuff

    <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_post_thumbnail( 'slider-img' ); ?></a>

    so that it looks like this

    <?php the_post_thumbnail( 'slider-img' ); ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Slider Autoplay and Slider disable click img’ is closed to new replies.