mjpramos
mjpramos

Reputation: 543

How to disable colorbox for certain images

I have a page with some photo thumbs and they open in colorbox just fine. The problem is beneath each thumb I have social icons - facebook, twitter, g+ and pintrest, and the pintrest image is considered part of the gallery.

How do I stop the pintrest image from getting included in the gallery display?

Thanks

Upvotes: 0

Views: 382

Answers (1)

Akbar
Akbar

Reputation: 101

I think you are calling the color box like below

$("img").colorbox()

instead

Give a class to all the images which you want to show on colobox () and then call the colorbox like below

$(".show-colorbox").colorbox()

Upvotes: 1

Related Questions