• Resolved sunhawk

    (@sunhawk)


    This is a weird bug, but I have a gallery I am working on (the rings one):
    https://searchdynamics.info/jthree/championship-jewellery#rings

    And even though I have filled out the Caption area in the backend, what I set as the caption text is being pulled on the front end as the Title text, which I have hidden to hide redundant text (the caption text can see html while the title text does not and I am looking to customize the look of the lightbox text) and the div for the caption doesn’t even show up in the code itself (i assume that’s the lightbox plugin that sets up the code for that).

    I can’t figure out why the first image works and the rest don’t, they are set up the same way in the backend!

    https://www.ads-software.com/plugins/wp-jquery-lightbox/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter sunhawk

    (@sunhawk)

    If I copy the caption from the first image caption that does show up, it shows up on the other lightbox image! I can add new text and it still shows, and now I am fiddling slowwwly with removing the working text to somehow “keep” whatever is it in unseen that “works” but I am making tedious progress!

    Thread Starter sunhawk

    (@sunhawk)

    it seems to be an issue with WordPress or the plugin not “seeing” some text, either when I copy and paste it or write it fresh, as far as I can tell if I copy a certain dash symbol in from the text that “works”, then the text is “seen” and gets pulled properly into the lightbox div by the plugin. I have used this dash symbol to get the captions to show up but clearly still has a bug.

    Check the documentation.

    WP jQuery Lightbox grabs texts from a few different HTML nodes;

    1. title-attribute of link-to-image
    2. img tag’s title attribute (if 1 is empty)
    3. img tag’s alt attribute (if 1 and 2 is empty)
    4. HTML content of .gallery-caption or .wp-caption-text (in that order)

    Look at how the default TwentyTwelve theme uses these in its galleries and set up your theme so it outputs what you need in these places.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘caption not being pulled after first image’ is closed to new replies.