I am having trouble with the colorbox i just added on my website.
It turns out that when I apply colorbox on the "anything slider" images, it will show two more images.
They are the first image and last one which get repeated and I don't know why.
Any help?
If you look at the script for the first demo on this page, you'll see that it uses ColorBox. In the code you just need to make sure you don't include the cloned panels (needed for infinite scrolling). Something like this:
$('#slider1')
.anythingSlider()
.find('.panel:not(.cloned) img') // ignore the cloned panels
.attr('rel','group') // add all slider images to a colorbox group
.colorbox();
I am having trouble with the colorbox i just added on my website. It turns out that when I apply colorbox on the "anything slider" images, it will show two more images. They are the first image and last one which get repeated and I don't know why. Any help?
any idea on how to fix it?
Hi GSquadron!
If you look at the script for the first demo on this page, you'll see that it uses ColorBox. In the code you just need to make sure you don't include the cloned panels (needed for infinite scrolling). Something like this:
In which ones code? On the anything slider or the color box? Since it already uses colorbox, should I delete the colorbox plugin?
Tx for the reply