Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Lingren

    (@dglingren)

    Yes, you can customize the caption to include anything you need. You can always create a custom markup template, but you can also use the mla_caption parameter to make most kinds of changes to the caption.

    You can copy the default “image link” to the caption field by adding this parameter to your [mla_gallery] shortcode:

    mla_caption="{+link+}"

    The default link includes the thumbnail version of the image, which may not be what you want for a hover effect. You can use the image title instead with this parameter:

    mla_caption="<a href='{+link_url+}' title='{+title+}'>{+title+}</a>"

    In these examples, values such as {+link+} and {+title+} are a few of the many attachment-specific substitution parameters you can use. Have a look at the “Attachment-specific substitution parameters for the markup template Item part” section on the Settings/Media Library Assistant Documentation tab.

    I hope that gets you started on customizing your [mla_gallery] captions. I’m going to mark this issue resolved, but let me know if you have any problems or further questions.

    Thread Starter ronenrer

    (@ronenrer)

    Thanks
    works well!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wrap image caption with link’ is closed to new replies.