WordPress.org

Ready to get started?Download WordPress

Forums

WP jQuery Lightbox
Captions Not Showing up with Jetpack Gallery Tiles (4 posts)

  1. alicchen
    Member
    Posted 9 months ago #

    For some reason, the captions go missing when using WP jQuery Lightbox with Jetpack Gallery Tiles. If you enter something like:
    [gallery type="rectangular" ids="69,68,67" link="file"]
    The lightbox captions don't show up. The entire #captionText div is missing. Anyway to fix this?

    http://wordpress.org/plugins/wp-jquery-lightbox/

  2. alicchen
    Member
    Posted 9 months ago #

    For anyone who has this problem, I managed to find a fix. It required modifying the plugin. But essentially, you need to open up the jquery.lightbox.js file in the plugin, go to line 192 and add:

    else if(jqThis.parent().find('.tiled-gallery-caption').html()){
    	caption = jqThis.parent().find('.tiled-gallery-caption').html();
    	captionText =jqThis.parent().find('.tiled-gallery-caption').text()
    }

    The plugin by default doesn't look for the tiled gallery captions since the classes are a little different. Additionally, you'll either need to covert this js to a jquery.lighbox.min.js and overwrite the original or go into wp-jquery-lightbox.php and change line 22 to define jquery.lightbox.js

    Hope this helps anyone else who might come across the same issue. Perhaps this can be added to the next release of this plugin!

  3. Enterpr1se
    Member
    Posted 8 months ago #

    Hi,

    Thanks for the solution.
    I had change the js as your introduction, but it seems doesn't work.
    Could you upload your jquery.lighbox.js for people who have this problem to download?

    Thnaks very much

  4. Enterpr1se
    Member
    Posted 8 months ago #

    It works now, I think it's cache problem so I don't see the caption,
    Thanks so much

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.