Guest User

Untitled

a guest
Feb 27th, 2019
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. // footer custom script
  2. function spicepress_client_custom_script()
  3. {
  4. ?>
  5. <script>
  6. // HOMEPAGE SLIDER
  7. jQuery(document).ready(function() {
  8.  
  9. jQuery("#clients-carousel").owlCarousel({
  10. navigation : true, // Show next and prev buttons
  11. autoplay : 7000,
  12. autoplayTimeout: client_settings.animationSpeed,
  13. autoplayHoverPause:true,
  14.  
  15. loop:true, // loop is true up to 1199px screen.
  16. nav:true, // is true across all sizes
  17. margin:30, // margin 10px till 960 breakpoint
  18. autoHeight: true,
  19.  
  20. responsiveClass:true, // Optional helper class. Add 'owl-reponsive-' + 'breakpoint' class to main element.
  21. //items: 5,
  22. dots: false,
  23. navText: ["<i class='fa fa-chevron-left'></i>","<i class='fa fa-chevron-right'></i>"],
  24. responsive:{
  25. 100:{ items:1 },
  26. 480:{ items:1 },
  27. 768:{ items:3 },
  28. 1000:{ items:3 }
  29. }
  30.  
  31. });
  32.  
  33. });
  34.  
  35. </script>
  36. <?php
  37. }
  38. add_action('wp_footer','spicepress_client_custom_script');
Add Comment
Please, Sign In to add comment