Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.md

#Testimonial/General Scroller

A plugin designed to help you display testimonials on any page or post of your WordPress site via a shortcode. To work it has a requirement for jQuery and JQuery UI. It also requires 'Slick' a jQuery carousel/slider script. Its repository should be listed. All the required files are included in its repository, there are also details on how to link to the required components.

The shortcode for the plugin is contained in the testimonial-carousel.php file. To include images and URLS in the output you will need to modify the source code. There is also a requirement for including a small piece of JavaScript in your footer.php file.

##Code for footer file (usually footer.php)

<script type='text/javascript'>
 (function($){  $(document).ready(function(){
  $(".pwd_carousel").slick({
  dots: false,
  infinite: true,
  speed: 3000,
  autoplay: true,
  arrows: false,
  adaptiveHeight:true,
  slidesToShow: 1,
  slidesToScroll: 1,
  easing: 'easeOutCirc'
  });
});})(jQuery);
</script>

##Second Code Example with a timeout loop to add pause between transitions

Derived from this [Stackoveflow Thread] (http://stackoverflow.com/questions/31222456/delay-pause-slick-slide-function)

<script type='text/javascript'>
var the_timeout;
function upDate(){
$(".pwd_carousel").slick('slickNext');
$(".pwd_carousel").slick('slickPause');
the_timeout = setTimeout("upDate()",12000);
}
(function($){  $(document).ready(function(){
  $(".pwd_carousel").slick({
  dots: false,
  infinite: true,
  speed: 2000,
  autoplay: false,
  arrows: false,
  adaptiveHeight:true,
  slidesToShow: 1,
  slidesToScroll: 1,
  cssEase: 'ease-in'
  });
});
setTimeout("upDate()",6000);
})(jQuery);
</script>

##NOTES

I would advise to only use the plugin in a development environment on your localhost. It still needs, on one end to have the content sanitized and on the other escaped. More in this article in my personal blog: Plugin Guidelines.

If you go into production with it, do turn off the error reporting.

##Change Log

17/11/2016 - Added Second Code Example to this README.md. It delays the slide transitions using a timeout loop

About

A plugin for WP that will display your testimonials in a slider

Resources

Releases

No releases published

Languages

You can’t perform that action at this time.