Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // footer custom script
- function spicepress_testimonial_custom_script()
- {
- ?>
- <script>
- // TESTIMONIAL SLIDER
- jQuery(document).ready(function() {
- jQuery("#testimonial-carousel").owlCarousel({
- navigation : true, // Show next and prev buttons
- autoplay : false,
- autoplayTimeout: testimonial_settings.animationSpeed,
- autoplayHoverPause:true,
- animateIn: testimonial_settings.animation,
- loop:true, // loop is true up to 1199px screen.
- nav:false, // is true across all sizes
- margin:30, // margin 10px till 960 breakpoint
- autoHeight: true,
- responsiveClass:true, // Optional helper class. Add 'owl-reponsive-' + 'breakpoint' class to main element.
- mouseDrag: false,
- touchDrag: false,
- items: 1,
- dots: true,
- //navText: ["<i class='fa fa-chevron-left'></i>","<i class='fa fa-chevron-right'></i>"],
- responsive:{
- 200:{ items:1 },
- 480:{ items:1 },
- 678:{ items:1 },
- 960:{ items:1 }
- }
- });
- });
- </script>
- <?php
- }
- add_action('wp_footer','spicepress_testimonial_custom_script');
Add Comment
Please, Sign In to add comment