• To fix this, please replace whole “if” statement that starts on line 95 file “inlucdes\js\gallery.js” with:

    if( jQuery().magnificPopup) {
    			$('.gallery-link-file').each( function() {
    				var $this = $(this);
    
    				var delegate = '.gallery-icon a';
    
    				if($this.hasClass('wcflexslider'))
    					delegate = '.gallery-item:not(.clone) .gallery-icon a';
    				else if($this.hasClass('wcowlcarousel'))
    					delegate = '.owl-item:not(.cloned) .gallery-icon a';
    
    				if ( $this.hasClass( 'magnificpopup-is-active' ) ) {
    					return;
    				}
    
    				$this.magnificPopup({
    					delegate: delegate,
    					gallery: {
    						enabled: true
    					},
    					type:'image',
    					image: {
    						titleSrc: function(item) {
    							var caption = $(item.el).parent().next('.gallery-caption').html();
    							if ( 'string' == typeof caption && caption.length > 0 )
    								return caption;
    
    							return '';
    						}
    					}
    				});
    
    				$this.addClass( 'magnificpopup-is-active' );
    			});
    		}

    https://www.ads-software.com/plugins/wc-gallery/

Viewing 1 replies (of 1 total)
  • Hi @maniu did you ever found a fix for the ghost images thats being created also?

    it seems the plugin is creating ghost images that can’t be found when browsing the gallery

Viewing 1 replies (of 1 total)
  • The topic ‘Fix for duplicated images in lightbox’ is closed to new replies.