Fix for duplicated images in lightbox
-
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' ); }); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Fix for duplicated images in lightbox’ is closed to new replies.