WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: jQuery Colorbox] Feature Request (4 posts)

  1. sparkweb
    Member
    Posted 4 years ago #

    I love this plugin. I use it on several sites and it makes out of the box galleries work great. Really, really great job.

    I have a request for a way to "opt out" of colorbox for certain places. In my case, I am running NextGen and am stuck using their gallery for a number of reasons. So I need to deactivate colorbox just on the gallery pages. I can inject a class into the NextGen gallery links and put this code into the colorbox plugin and it works great.

    $("a:has(img):not(.skipcolorbox)").each(function(index, obj) {

    What do you think about rolling this feature in to jQuery Colorbox? Or any other ideas for avoiding colorbox on just certain pages?

    http://wordpress.org/extend/plugins/jquery-colorbox/

  2. techotronic
    Member
    Posted 4 years ago #

    Hi,
    thanks for using my plugin! :-)

    Actually, the feature you are talking about has been in the plugin for a few months now. If the CSS class "colorbox-off" is assigned to the images, the Colorbox won't be applied to them. If you want to, I can include your solution as well, if it is easier to automate with NextGen. (the CSS class would have to be "colorbox-off", though)

    Best regards,
    Arne

  3. sparkweb
    Member
    Posted 4 years ago #

    Thanks Arne, that would be great. I can't figure out a way to put that class in the image itself... only have access to the a tag through NextGen. Adding the colorbox-off class to the a selector would be a great way to go.

    Thanks for the consideration!

  4. techotronic
    Member
    Posted 4 years ago #

    No problem at all, I'll include your code change in the next jQuery Colorbox release.
    If you change the class applied to the a tags and your temporary fix to "colorbox-off" now, you won't have to do anything after the update.

    Best regards,
    Arne

Topic Closed

This topic has been closed to new replies.

About this Topic