Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author dFactory

    (@dfactory)

    prettyPhoto displays the title attribute of a link (an ‘a’ selector). If you make your links include description of the image, it will be displayed in a lightbnox.

    Thread Starter ayoungvoice

    (@ayoungvoice)

    Are you talking about adding the description into the media center title box or actually in the code of the link in the page? I have a client who is adding images and needs it as easy as possible.

    Plugin Author dFactory

    (@dfactory)

    If your images (attachments) are described just modify your image links to display it, instead of image titles.

    And how can one show captions? I’m using prettyPhoto…

    Plugin Author dFactory

    (@dfactory)

    All you’d have to do is to make title attribute of image links use image captions instead of link titles. It would require some modifications in your theme I guess, but the end result should be like that:

    <a href="..." title="The caption of an image"><img src="..."></a>

    Getting image captions for your attachments is quite well described here: https://www.wpbeginner.com/wp-tutorials/how-to-display-wordpress-post-thumbnails-with-captions/

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