WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Stop image showing under lightbox slideshow (2 posts)

  1. berchman
    Member
    Posted 6 months ago #

    Hi,
    When viewing a gallery on a page I see thumbnails of all the images.
    If I click on an image, that image opens AND then a lightbox slideshow comes up on top of the image.

    When I close the lightbox slideshow I want to go back to the thumbnails.

    Instead the lightbox slideshow closes and then I'm shown a single image showing in lightbox (the original one I clicked on) and I have to click AGAIN to dismiss it.

    I want to make the single still image disappear and never display.
    I only want the lightbox slideshow to display.

    In the shortcode it says,

    [gallery link="file" ids="547,548,.....

    I tried changing link="file" to link="#" but then get the error:
    Image cannot be loaded. Make sure the path is correct and image exist.

    I've checked here: http://codex.wordpress.org/Gallery_Shortcode
    and here: http://codex.wordpress.org/Inserting_Images_into_Posts_and_Pages

    You can see it in action here:
    http://j.mp/1eIyobv

    Anyone know of a way to stop the underlying image from displaying?
    (other than a CSS hack?)

    Let me know if you have any questions.
    Thanks,
    Bert

  2. berchman
    Member
    Posted 6 months ago #

    I found not the perfect solution, but something that works.

    I added a CSS class to override the overlay and image displayed under the slideshow image.

    div.pp_overlay {
    	display: none !important;
    }
    
    div.pp_pic_holder {
    	display: none !important;
    }

    Hope this helps someone.

Reply

You must log in to post.

About this Topic