• Resolved patrick_here

    (@patrick_here)


    I’m having a problem with captions. It is on an extended family site that family members want to keep private (eg: not crawled by search engines) so I can’t post the URL here but I could send it to you (if I knew how). I am able to get the captions to work in the lightbox on an empty site that has nothing but the Ultimate Lightbox plugin but on the live site the captions just don’t show.

    When I inspect the lighbox using Firefox Inspector on the empty site the caption shows up in a div with class=”ewd-ulb-slide-description”.

    …but on the family site, that div isn’t even present for the image in the lightbox (however before clicking and bringing up the lightbox the caption in a “dd” element is present with the full correct caption)

    On these sites the “All WordPress Galleries” checkbox is checked …to use the lightbox on all wordpress galleries.

    Please advise.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support jaysupport

    (@jaysupport)

    Hi patrick,

    Do you have the Show Overlay Text option enabled (in the Basic area of the Settings page)? What do you have set for the Overlay Text Source option (in the Advanced area of the Settings page)?

    Are you by any chance using a cache plugin? If so, could you delete your cache and see if that makes a difference?

    If still necessary, you can share the URL with us directly by submitting a request using our support center, here: https://www.etoilewebdesign.com/support-center/

    Thread Starter patrick_here

    (@patrick_here)

    Hello Jay,

    Thanks for getting back to me.

    1. Yes, “Show Overlay Text” option is enabled.
    2. Overlay Text Source Source is set to: “Caption” (and the images do have captions)
    3. I’m not using a cache plugin. WP-Optimize is installed and enabled but I was only using it for cleanup. I have sent the URL to you at the “support-center” page you mentioned together with login credentials.
      Thank you,
      Patrick
    Thread Starter patrick_here

    (@patrick_here)

    SOLVED:
    If you have setup captions for your images and you are using Ultimate Lightbox with “All WordPress Galleries”, your captions might not show in the lightbox -because some themes register HTML5 gallery support and others don’t – even the latest release of the theme. If a theme doesn’t register HTML5 Gallery support it will cause the ‘gallery’ shortcode to put out different HTML tags for your gallery images and the current version of Ultimate Lightbox won’t recognize those tags (<dl> and <dd>). But there is a workaround. Simply add the itemtag and captiontag flags to your gallery shortcodes on the page/post like this:

    [gallery itemtag="figure" captiontag="figcaption" link="file" ids="22,33"]

    Alternatively if you can code php, this code can be added to your child theme’s functions.php to solve the problem:

    add_shortcode( 'gallery', 'gallery_shortcode_mods' );
    function gallery_shortcode_mods( $atts )
    {
    $atts['link'] = 'file';
    $atts['itemtag'] = 'figure';
    $atts['captiontag'] = 'figcaption';
    return gallery_shortcode( $atts );
    }

    …then you won’t have to add the flags to each [gallery] shortcode.

    Perhaps the Ultimate Lightbox developers will address this issue in another way in a future release of the plugin.

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

The topic ‘Problem with captions’ is closed to new replies.