Guest User

Untitled

a guest
Jan 2nd, 2019
41
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. responsiveClass:true, // Optional helper class. Add 'owl-reponsive-' + 'breakpoint' class to main element.
  24. items: 1,
  25. dots: false,
  26. navText: ["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"]
  27.  
  28. });
  29.  
  30. });
  31.  
  32. </script>
  33. <?php
  34. }
  35. add_action('wp_footer','spicepress_slider_custom_script');
RAW Paste Data