Problem using jQuery Galleriffic plugin in template
Permalink
Hi Everyone,
I'm having a bit of trouble getting a jquery gallery to work inside c5. It worked fine when I built the template html, but once I'd brought the files inside the themes directory, the gallery just doesn't load properly. The only error I seem to garner is from firebug, which tells me:
'$("#banner_tabs ul.thumbs li").opacityrollover is not a function'
I imagine that it might be some sort of conflict between c5's jquery and my own, but I'm still very new to c5, so I'm not really sure where to start attacking the problem.
If you want to see it in action its:http://nulook.protonoven.com
I've used it on both the homepage and style gallery. Any help or advice would be much appreciated :)
Cheers
I'm having a bit of trouble getting a jquery gallery to work inside c5. It worked fine when I built the template html, but once I'd brought the files inside the themes directory, the gallery just doesn't load properly. The only error I seem to garner is from firebug, which tells me:
'$("#banner_tabs ul.thumbs li").opacityrollover is not a function'
I imagine that it might be some sort of conflict between c5's jquery and my own, but I'm still very new to c5, so I'm not really sure where to start attacking the problem.
If you want to see it in action its:http://nulook.protonoven.com
I've used it on both the homepage and style gallery. Any help or advice would be much appreciated :)
Cheers
Thanks for this, I'll give it a try and let you know how it goes.
It worked!!!
I put the before my calls to the galleriffic scripts and removed my call for jQuery and it worked excellently.
Now all I have to do is figure out why one of my galleries is broken, but as to my original problem this is well and truely solved!
Cheers green2go!
I put the
<?php Loader::element('header_required'); ?>
Now all I have to do is figure out why one of my galleries is broken, but as to my original problem this is well and truely solved!
Cheers green2go!
Cool!
No problem, could you mark my first reply as the best answer?
Thanks
Oli
No problem, could you mark my first reply as the best answer?
Thanks
Oli
Er.. I guess it already has been :)
The reason why your getting the 'function not found' message is because your references to the jQuery libraries are being overridden by C5s own references. (As you probably know C5 uses jQuery as well)
Remove all of your references and insert the references to the following files below the C5 ones:
jquery.galleriffic.js
jquery.opacityrollover.js
The code in your <HEAD> tags currently looks like this:
It should look more like this:
You may need to make some more alterations but this is a starting point.
Cheers
O