Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi Sofia,

    Thanks for giving the plugin a try! We’re really trying to avoid adding options to this plugin, mainly to eliminate bloat and more code overhead, but there may be a way to include captions without adding options that we’re not thinking of yet.

    We’ll look into this some more, and if we end up adding this feature in at some point, we’ll be sure to let you know. Thanks again for trying it out!

    Thread Starter Sofia Woods

    (@shortied)

    okay thanks peeps – understood…

    Hi Sofia,

    I just thought I’d let you know that caption support is included in the latest version of WP Featherlight!

    Thats great news Wp Site Care!

    Can you please explain how this works?
    I added a caption to the image inside a gallery, but it doesnt display in the lightbox (only in the gallery view)

    Any response to this? Caption is also not working to me. I use it to link this way

    <a href="#" data-featherlight="image"><img src="#"></a>

    Hi Ryan, really great work with this plugin.

    It seems the issue is that wordpress handles captions differently now and doesn’t use the class (.wp-caption-text) you were referencing.

    Here is the code that needs to be added to turn ALT tags into captions.

    https://github.com/noelboss/featherlight/wiki/Gallery:-showing-a-caption

    Plugin Author Robert Neu

    (@fatmedia)

    Hey Kathatp,

    Unless you’re using a plugin or theme that modifies the default WordPress caption system, that class should definitely still exist.

    You can see it in use on our recent WordPress White Screen of Death post.

    The code we use to handle the captions is similar to that, but adding captions using alt text would make them display for every image on the site, which would be a really strange experience for most users. If you’d like to implement that code yourself, you should be able to add it in a custom JS file within your theme.

    Hope that helps!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘add captions’ is closed to new replies.