WordPress.org

Ready to get started?Download WordPress

Forums

WP jQuery Lightbox
[resolved] Add the image description to the lightbox? (7 posts)

  1. Heartful
    Member
    Posted 2 years ago #

    Hi!

    I'm looking to add the image description to the lightbox, below the title and caption. How can I easily do this? I can understand code a little bit but I'm not a coder.

    With love,
    Marleen.

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

  2. ulfben
    Member
    Plugin Author

    Posted 2 years ago #

    WP jQuery Lightbox grabs texts from three different HTML nodes;

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

    Set up your theme so it outputs what you need in these places.

  3. denl
    Member
    Posted 2 years ago #

    I would also like to get it to display the image description as that allows a bit more text under the image than using the caption. Maybe in the future?

  4. ulfben
    Member
    Plugin Author

    Posted 2 years ago #

    Set up your theme so it outputs what you need in these places.

  5. neuroticartist
    Member
    Posted 1 year ago #

    Is there any way to get it to show the content in the Alt tag of an image and not the title by chance?

  6. ulfben
    Member
    Plugin Author

    Posted 1 year ago #

    @neuroticartist; the latest version support the alt-property.

  7. WordPress Fan
    Member
    Posted 1 year ago #

    I would like to show below an image:

    a) ALT-Text of an image (kind of title)
    b) the caption (for copyright-info)
    c) below of that the HTML image description for longer texts

    Is this somehow possible?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic