Guest User

Untitled

a guest
Jan 3rd, 2019
18
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // footer custom script
  2. function spicepress_slider_custom_script()
  3. {
  4. ?>
  5. <script>
  6. // HOMEPAGE SLIDER
  7. jQuery(document).ready(function() {
  8.  
  9. jQuery("#slider-carousel").owlCarousel({
  10. navigation : true, // Show next and prev buttons
  11. slideSpeed : 300,
  12. paginationSpeed : 400,
  13. animateIn: slider_settings.animation,
  14. autoplay : 7000,
  15. autoplayTimeout: slider_settings.animationSpeed,
  16. autoplayHoverPause:true,
  17. singleItem:true,
  18. loop:true, // loop is true up to 1199px screen.
  19. nav:true, // is true across all sizes
  20. margin:0, // margin 10px till 960 breakpoint
  21. autoHeight: true,
  22. mouseDrag: false,
  23. touchDrag: false,
  24. responsiveClass:true, // Optional helper class. Add 'owl-reponsive-' + 'breakpoint' class to main element.
  25. items: 1,
  26. dots: false,
  27. navText: ["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"]
  28.  
  29. });
  30.  
  31. });
  32.  
  33. </script>
  34. <?php
  35. }
  36. add_action('wp_footer','spicepress_slider_custom_script');
RAW Paste Data