• I want to auto-enable jQuery Colorbox only for NextGen galleries. I have it working “well enough,” but one detail escapes.

    What I did was disable all auto-colorbox settings, then I edited NextGen’s gallery.php (made a copy in /theme/nggallery). Then I added the text for class=colorbox-xxx to the output template. Only catch is that I can only hard-code the class number, I can’t find a variable to use for the gallery ID. I tried using:

    class="colorbox-<?php echo $post->ID ?>"

    But that just returns “colorbox-” and the colorbox doesn’t activate.

    If I just use class=”colorbox-777″ that works, and it’s good enough for my purposes, but it would be nice if I could get the ID’s to work for grouping.

  • The topic ‘Enabling for NextGen only’ is closed to new replies.