• Resolved cerity

    (@cerity)


    I have a new WP Theme under construction and have installed SLB slider plugin

    The plugin works on Pages and Gallery’s however for Gallery, the SLB slider is overlaid on top of basic WP image. Thus:-

    When an image thumbnail is clicked the image appears as basic WP slider, then within a second SLB slider overlays the basic WP slider. When closing SLB slider (x) the basic WB slider remains active and visible.

    Clicking any of the 5 image thumbnails on following url for Gallery example
    http://barry-green.uk/gallery/hellavagirl

    SLB Settings http://www.pixel888.co.uk/SLB%20Settings.jpg

    • This topic was modified 8 years, 10 months ago by cerity.
    • This topic was modified 8 years, 10 months ago by cerity.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Archetyped

    (@archetyped)

    Hi, I’m not seeing any other lightboxes being loaded at the link you provided. Are you still experiencing this issue?

    If so, please provide additional details such as the theme you are using (with link) and the browser(s) you are seeing the issue in.

    Thanks.

    • This reply was modified 8 years, 10 months ago by Archetyped.
    Thread Starter cerity

    (@cerity)

    Appologies for temporary adjustment. At around GMT 23:00 on 5thn June scripts.js was modified in an attempt to resolve issues. The following code was added to scripts.js as highlighted below:-

    As you discovered cooincidentally, the issue is changed, although timed slideshow feature does not automatically re-start after the first instance is exited unless whole page is reloaded.

    I have now removed modified code in the last few minutes and reinstated the original unmodified code. If you recommend a different solution then I would be grateful to hear your suggestions.

    /*———————————-*/
    /* Gallery modified line 373 added by daniel
    /*———————————-*/

    function semishotGalleryInit( container, target ) {

    $( container ).each( function() {
    $( this ).find( target ).magnificPopup({
    type: ‘image’,
    mainClass: ‘mfp-img-mobile mfp-zoom-in’,
    tLoading: ”,
    gallery: {
    enabled: true,
    preload: [0,2],
    tCounter: ‘<span class=”mfp-counter”>%curr% / %total%</span>’
    },
    removalDelay: 300, // Delay removal by X to allow out-animation
    callbacks: {
    open: function() {
    // Overwrite default prev + next function. Add timeout for css3 crossfade animation
    $.magnificPopup.instance.next = function() {
    var self = this;
    self.wrap.removeClass( ‘mfp-image-loaded’ );
    setTimeout(function() { $.magnificPopup.proto.next.call(self); }, 120);
    }
    $.magnificPopup.instance.prev = function() {
    var self = this;
    self.wrap.removeClass( ‘mfp-image-loaded’ );
    setTimeout(function() { $.magnificPopup.proto.prev.call(self); }, 120);
    }
    },
    imageLoadComplete: function() {
    var self = this;
    setTimeout(function() { self.wrap.addClass( ‘mfp-image-loaded’ ); }, 16);
    // — START – ADDED BY DANIEL ———————————-
    $(‘.mfp-container, .mfp-wrap, .mfp-bg’).css({“opacity”: “0”});
    $( “button.mfp-close” ).trigger( “click” );
    // — END – ADDED BY DANIEL ———————————
    }
    }
    });
    });
    }
    semishotGalleryInit( ‘.gallery’, ‘.gallery-icon a’ );
    semishotGalleryInit( ‘.mt-pgrid-gallery’, ‘.mt-pgrid-link’ );

    Thread Starter cerity

    (@cerity)

    Additional Info:

    The theme is SEMISHOT
    https://themeforest.net/item/semishot-creative-wordpress-theme-for-portfolios-photographers-and-agencies/17070660?s_rank=1

    The testing hhas been done in Mozilla, Chrme and IE on Windows 7 PB
    Also on Mozilla and Chrome on Android tablet.

    Plugin Author Archetyped

    (@archetyped)

    Hi, it looks your active theme is adding a separate lightbox (not WordPress itself). The theme appears to be using a script called “Magnific Popup”.

    Disabling this script really depends on how they are adding it to their theme, so I would recommend contacting the theme’s developer for details on disabling Magnific Popup (if there isn’t already an option in the theme’s settings to do this).

    Thread Starter cerity

    (@cerity)

    Thank you.

    Removing the line (below) from theme script file has completely resolved the issue.
    semishotGalleryInit( ‘.gallery’, ‘.gallery-icon a’ );

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Overlaid Lightbox’ is closed to new replies.