Plugin not working
-
Hi Support, i have add plugin to my side, but when i add new slider, but i copy shortcode to code page:
<?php echo do_shortcode(‘[slide-anything id=”3113″]’); ?>
not show slide, not show error. i have checked: DOMContentLoaded event, but not working.
i have ctr+shift+j in chrome & i see error:
“Uncaught TypeError: jQuery(…).owlCarousel is not a function
at HTMLDocument.<anonymous> ((index):381)
at i (jquery.min.js:2)
at Object.fireWith [as resolveWith] (jquery.min.js:2)
at Function.ready (jquery.min.js:2)
at HTMLDocument.K (jquery.min.js:2)
”javascript error with red line:
”
<script type=’text/javascript’>
document.addEventListener(‘DOMContentLoaded’, function() {
jQuery(‘#slider_3113’).owlCarousel({
items : 1,
smartSpeed : 200,
autoplay : true,
autoplayTimeout : 5000,
autoplayHoverPause : true,
smartSpeed : 200,
fluidSpeed : 200,
autoplaySpeed : 200,
navSpeed : 200,
dotsSpeed : 200,
loop : true,
nav : true,
navText : [”,”],
dots : true,
responsiveRefreshRate : 200,
slideBy : 1,
mergeFit : true,
autoHeight : false,
mouseDrag : false,
touchDrag : true
});
jQuery(‘#slider_3113’).css(‘visibility’, ‘visible’);
sa_resize_slider_3113();
window.addEventListener(‘resize’, sa_resize_slider_3113);
function sa_resize_slider_3113() {
var min_height = ’50’;
var win_width = jQuery(window).width();
var slider_width = jQuery(‘#slider_3113’).width();
if (win_width < 480) {
var slide_width = slider_width / 1;
} else if (win_width < 768) {
var slide_width = slider_width / 1;
} else if (win_width < 980) {
var slide_width = slider_width / 1;
} else if (win_width < 1200) {
var slide_width = slider_width / 1;
} else if (win_width < 1500) {
var slide_width = slider_width / 1;
} else {
var slide_width = slider_width / 1;
}
slide_width = Math.round(slide_width);
var slide_height = ‘0’;
if (min_height == ‘aspect43’) {
slide_height = (slide_width / 4) * 3; slide_height = Math.round(slide_height);
} else if (min_height == ‘aspect169’) {
slide_height = (slide_width / 16) * 9; slide_height = Math.round(slide_height);
} else {
slide_height = (slide_width / 100) * min_height; slide_height = Math.round(slide_height);
}
jQuery(‘#slider_3113 .owl-item .sa_hover_container’).css(‘min-height’, slide_height+’px’);
}
});
”please help me. thanks so much
The page I need help with: [log in to see the link]
- The topic ‘Plugin not working’ is closed to new replies.