Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #773601

    oneononeroi
    Participant

    To clarify, this is about the “Responsive Slider” element included within Xtheme. NOT the “Revolution Slider” plugin.

    Is there any way to STOP the slider from pausing when the mouse hovers over the slider element? Currently, when the mouse hovers over the slider, it pauses the slideshow until the curser is removed from over the element. I need it to play-through regardless of where the cursor is placed – Like a regular slider.

    I imagine there is some CSS I could use within the element in cornerstone to toggle this on/off for each slider? Otherwise, I have already tried using the following into the functions.php file within my child theme – with NO success.

    Is the code below wrong? Or, is there some other way? Thanks…

    // [slider] = disable pause on hover
    // ================================================================================

    function x_shortcode_responsive_slider2( $atts, $content = null ) { // 1
    extract( shortcode_atts( array(
    ‘id’ => ”,
    ‘class’ => ”,
    ‘style’ => ”,
    ‘animation’ => ”,
    ‘slide_time’ => ”,
    ‘slide_speed’ => ”,
    ‘slideshow’ => ”,
    ‘random’ => ”,
    ‘control_nav’ => ”,
    ‘prev_next_nav’ => ”,
    ‘no_container’ => ”
    ), $atts ) );

    static $count = 0; $count++;

    $id = ( $id != ” ) ? ‘id=”‘ . esc_attr( $id ) . ‘”‘ : ”;
    $class = ( $class != ” ) ? “x-flexslider-shortcode-container ” . esc_attr( $class ) : “x-flexslider-shortcode-container”;
    $style = ( $style != ” ) ? ‘style=”‘ . $style . ‘”‘ : ”;
    $animation = ( $animation == ‘fade’ ) ? ‘fade’ : ‘slide’;
    $slide_time = ( $slide_time != ” ) ? $slide_time : ‘7000’;
    $slide_speed = ( $slide_speed != ” ) ? $slide_speed : ‘600’;
    $slideshow = ( $slideshow == ‘true’ ) ? $slideshow : ‘false’;
    $random = ( $random == ‘true’ ) ? $random : ‘false’;
    $control_nav = ( $control_nav == ‘true’ ) ? $control_nav : ‘false’;
    $prev_next_nav = ( $prev_next_nav == ‘true’ ) ? $prev_next_nav : ‘false’;
    $no_container = ( $no_container == ‘true’ ) ? ” : ‘ with-container’;

    $output = “<div class=\”{$class}{$no_container}\”>”
    . “<div {$id} class=\”x-flexslider x-flexslider-shortcode x-flexslider-shortcode-{$count}\” {$style}>”
    . ‘<ul class=”x-slides”>’
    . do_shortcode( $content )
    . ‘‘
    . ‘</div>’
    . ‘</div>’
    . ‘<script>’
    . ‘jQuery(window).load(function() {‘
    . “jQuery(‘.x-flexslider-shortcode-{$count}’).flexslider({”
    . “selector : ‘.x-slides > li’,”
    . “prevText : ‘<i class=\”x-icon-chevron-left\”></i>’,”
    . “nextText : ‘<i class=\”x-icon-chevron-right\”></i>’,”
    . “animation : ‘{$animation}’,”
    . “controlNav : {$control_nav},”
    . “directionNav : {$prev_next_nav},”
    . “slideshowSpeed : {$slide_time},”
    . “animationSpeed : {$slide_speed},”
    . “slideshow : {$slideshow},”
    . “randomize : {$random},”
    . ‘pauseOnHover : false,’
    . ‘useCSS : true,’
    . ‘touch : true,’
    . ‘video : true,’
    . ‘smoothHeight : true,’
    . “easing : ‘easeInOutExpo'”
    . ‘});’
    . ‘});’
    . ‘</script>’;

    return $output;
    }

    add_filter(‘init’, function() {
    remove_shortcode( ‘slider’ );

    add_shortcode( ‘slider’, ‘x_shortcode_responsive_slider2’ );
    });

    Thanks!

    #773847

    Zeshan
    Member

    Hi there,

    Thanks for writing in!

    This is currently not possible to disable this option since it’s written inside the JS file and that’s why the code you are using in child theme doesn’t have any effect on the slider. It could be possible with custom development, but this would be outside the scope of support we can provide. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities.

    However, I’ll consider it a featured request and will forward to our development team. This way it can be taken into consideration for future development. All of these items are discussed with our team internally and prioritized based on the amount of interest a particular feature might receive.

    Thanks for understanding.

    #774647

    oneononeroi
    Participant

    Thank you for the speedy response. I do think it would make sense to add that toggle feature into Cornerstone to allow enable/disable of the “pauseOnHover” function. In the meantime, I’ll go ahead and find an alternate solution (most likely using Revolution Slider). I must say though, I’m quite impressed with the awesome support and high quality service you all provide to your clients/customers. Thank you all.

    #774932

    Friech
    Moderator

    We certainly appreciate the feedback.

    Thanks!

    #841174

    Joshua
    Participant

    I second this request. I really don’t want to use Revolution slider, but will have to because of this stop on hover. The cornerstone slider is great, but this is a much needed feature!

    #841313

    Rad
    Moderator

    Noted that, thanks for the feedback 🙂