Guest User

Untitled

a guest
Jun 12th, 2020
21
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None
  1. add_action( 'wp_footer', function () { ?>
  2. <script>
  3.  
  4. jQuery("#theme-main-slider").owlCarousel({
  5. navigation : true, // Show next and prev buttons
  6. slideSpeed : 300,
  7. animateIn: 'fadeIn',
  8. autoplay : 7000,
  9. smartSpeed: custom_data.arilewp_main_slider_smart_speed,
  10. autoplayTimeout: custom_data.arilewp_main_slider_scroll_speed,
  11. autoplayHoverPause:true,
  12. singleItem:true,
  13. mouseDrag: custom_data.arilewp_main_slider_mouse_drag_disabled,
  14. touchDrag: custom_data.arilewp_main_slider_mouse_drag_disabled,
  15. loop:true, // loop is true up to 1199px screen.
  16. nav:true, // is true across all sizes
  17. margin:0, // margin 10px till 960 breakpoint
  18. autoHeight: true,
  19. responsiveClass:true, // Optional helper class. Add 'owl-reponsive-' + 'breakpoint' class to main element.
  20. items: 1,
  21. dots: false,
  22. navText: ["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"]
  23. });
  24.  
  25.  
  26. </script>
  27. <?php } );
RAW Paste Data Copied