Okay
  Public Ticket #1216667
Autoplay Testimonials
Closed

Comments

  • Arvi started the conversation

    Would you know how to autoplay testimonials section in the home page? I tried setting the auto:true in the testimonials shortcodes unyson plugin but it is still not autoplaying.

  •  1,697
    Andrey replied

    Hello, Dear Customer! 

    The alternative way is the following: open in code editor file main.js located in /wp-content/themes/beautyagency/js and remove lines from 45 to 67: http://nimb.ws/6K2ywe Save file. Then go to file view.php in wp-content/themes/beautyagency/framework-customizations/extensions/shortcodes/shortcodes/testimonials/views/view.php and add at the beginning of file the following code:

    <?php if ( ! defined( 'FW' ) ) {
     die( 'Forbidden' );
    }
    $id = uniqid( 'testimonials-' );
    ?>
    <script>
     jQuery(document).ready(function ($) {
      $('#<?php echo esc_attr($id) ?>').carouFredSel({
       swipe: {
        onTouch: true
       },
       next : "#<?php echo esc_attr($id) ?>-next",
       prev : "#<?php echo esc_attr($id) ?>-prev",
       pagination : "#<?php echo esc_attr($id) ?>-controls",
       responsive: true,
       infinite: true,
       items: 1,
       auto: true,
       scroll: {
        items : 1,
        fx: "crossfade",
        easing: "linear",
        duration: 900 // 300
       }
      });
     });
    </script>
    <div class="fw-testimonials fw-testimonials-2"></div>