Link to home
Start Free TrialLog in
Avatar of badwolfff
badwolfffFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Please could someone help me solve the javascript/jQuery conflict on this page?

I am trying to use the JSSOR slider at the top of my page (http://www.jssor.com/http://www.jssor.com/
and just below the tabs I am trying to use the Owl Carousel to load my products (http://owlgraphic.com/owlcarousel/http://owlgraphic.com/owlcarousel/.

The problem is that the top slider works but while that works the owl carousel fails to behave itself.
My url is: http://demo.missionfamily.org/index.php?route=product/vendorstore&vendor_id=16

Please help me solve this issue which I am sure is a simple, silly jQuery conflict somewhere. I've tried many things but nothing seems to work and it is driving me nuts.

thanks in advance
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

This may not have any effect but have you tried placing your owl code inside a document.ready block

$(function() {
  $('#vendor_products_carousel').owlCarousel({
	items: 4,
	navigation: true,
	navigationText: ['<i class="fa fa-chevron-left fa-5x"></i>', '<i class="fa fa-chevron-right fa-5x"></i>'],
	pagination: true
  });
});

Open in new window

Avatar of badwolfff

ASKER

Hi,

thanks for your reply.

I tried it but it doesn't do it.
I tried with $ as well as jQuery and right now the code is like:
jQuery( document ).ready(function() {
  jQuery('#vendor_products_carousel').owlCarousel({

    items: 4,

    navigation: true,

    navigationText: ['<i class="fa fa-chevron-left fa-5x"></i>', '<i class="fa fa-chevron-right fa-5x"></i>'],

    pagination: true

  });
});

Open in new window


Any other solutions?
If you disable (remove) the top carousel does it work?

In other words can you get the owlCarousel to work as expected by removing the jssor code keeping everything else exactly the same?
ASKER CERTIFIED SOLUTION
Avatar of David H.H.Lee
David H.H.Lee
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial