Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'wp_footer', function () { ?>
- <script>
- jQuery("#project-slider").owlCarousel({
- navigation : true, // Show next and prev buttons
- autoplay: true,
- autoplayTimeout: custom_data.arilewp_project_scroll_speed,
- autoplayHoverPause: true,
- smartSpeed: custom_data.arilewp_project_smart_speed,
- mouseDrag: custom_data.arilewp_project_mouse_drag_disabled,
- loop:true, // loop is true up to 1199px screen.
- nav:true, // is true across all sizes
- margin:30, // margin 10px till 960 breakpoint
- autoHeight: true,
- responsiveClass:true, // Optional helper class. Add 'owl-reponsive-' + 'breakpoint' class to main element.
- //items: 3,
- dots: false,
- navText: ["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"],
- responsive:{
- 100:{ items:1 },
- 480:{ items:1 },
- 768:{ items:2 },
- 1000:{ items:custom_data.arilewp_project_column_layout }
- }
- });
- </script>
- <?php } );
Add Comment
Please, Sign In to add comment