Support » Plugin: WP jQuery Lightbox » [Plugin: WP jQuery Lightbox] Title-captions Bug found, solved, and fix proposed

  • Resolved josephknight


    Hi Ulf,
    Thanks first of all for such a simple and elegant lightbox solution for wordpress.

    However I found a bug and coded in a little solution.
    If some images in a set have the link title set and the rest of the images do not then this bug happens:
    When flipping through the lightbox pages the title-less links should not have a caption. However all the title-less images in the set will contain the last image’s caption when flipping through. In other words, there’s no code that says “hey if this image doesn’t have the ahref title element set, then hide the caption.

    You can replicate this bug by creating a set of 2 images in a post and then give only one of their surround link’s a title attribute. The caption will show up for the image with the titled link and will carry over to the image with the un-titled link (even tho this image should not have a caption).

    I found this code in the original jquery lightbox plugin and inserted it into your wp plugin. It hides the caption just before each image is paged into view and only shows it if the title actually contains something. It’s just 2 lines of code:


    function updateDetails() {
    		    /* BEGIN ADDITION */
       			$('#imageDataContainer').slideDown('fast');//<-- important but missing from your version
    			$('#caption').hide();//<-- important but missing from your version
    		    /* END ADDITION */


    I beg you to make an awesome plugin even closer to perfect and add this code then update the plugin in the wordpress plugin repository.

    Thanks for your port, it’s my favorite.

Viewing 5 replies - 16 through 20 (of 20 total)
  • @vesselds : it’s a problem of z-index. Check the z-index property for your navigation bar or elements inside, and force them to be less than 100.
    By the way, this plugin is cool but not maintained and developper seems to not respond to forum…try writting your own custom plugin (like I did), it’s quickest, easiest to maintain and way lighter than this one.

    Hi dway! Thank you so much for responding. It’s unfortunate that we can’t get a response from the developer…the very source.

    I not really familiar with WP sites. Actually, this is the first WP site that I have worked with. Where would I find the z-index for the navigation bar? Would this be in the STYLES sheet, or the MENUSM css sheet (the menusm.css works determines the navigation bar styling) or is it a php file? Sorry, I know, lots of questions, I just need a little guidance.

    Again, thank you for your help πŸ™‚

    Hiii! Okay, I figured it out…it was in the MENUSM.css file.
    Thank you so much for your help!


    @vesselds : I’m glad you’ve fixed your bug πŸ™‚

    I’m having a slight problem with this plugin. When I click on an image the lightbox works but for some reason my navigation bar also lights up. Does anybody know how to fix this?

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘[Plugin: WP jQuery Lightbox] Title-captions Bug found, solved, and fix proposed’ is closed to new replies.