Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Guillermo

    (@gsenas)

    The colorbox plugin is not currently supported, but you could give it a try adding the bold lines to the ngg-photoswipe.js file:

    jQuery(document).ready(function(){
    //Remove thickbox effect:
    jQuery(‘a.thickbox’).removeClass (“thickbox”);
    //Remove lightbox effect:
    jQuery(‘a[rel^=”lightbox”]’).attr(“rel”,””);
    //Remove colorbox:
    jQuery(‘a.cboxElement’).removeClass (“cboxElement”);

    //Remove highslide effect:
    jQuery(‘a.highslide’).removeClass(“highslide”).attr(“onclick”,””);
    //Remove shutter effect:
    jQuery(‘a[class^=shutterset]’).removeClass (function (index, css) { return (css.match (/\bshutterset\S+/g) || []).join(‘ ‘);
    });
    });

    I was able to get jQuery Colorbox working perfectly with Photoswipe for NextGEN gallery.
    Here’s how…

    Edit this file:
    photoswipe-for-nextgen-gallery/js/ngg-photoswipe.js

    Near the top of that file replace this:

    //Ready for photoSwipe!
    jQuery(function(){
    	if (jQuery(".ngg-gallery-thumbnail a").length > 0) {
    		jQuery(".ngg-gallery-thumbnail a").photoSwipe({

    With this:

    //Ready for photoSwipe!
    jQuery(function(){
    	if (jQuery(".ngg-gallery-thumbnail a").length > 0) {
    	jQuery('a.cboxElement').removeClass ("cboxElement");
    		jQuery(".ngg-gallery-thumbnail a").photoSwipe({

    Well, if this isn’t working for you try disable “loading in footer” in jQuery Colorbox settings!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘JQuery Colorbox and Photoswipe vor NextGen Gallery’ is closed to new replies.