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

    (@dglingren)

    Thanks for your question. You can put many HTML tags like <hr> and <br> right in the shortode, using the mla_caption parameter.
    Here’s an example:

    mla_caption="{+title+}<hr>{+date+}<br>{+file+}"

    In your case, I believe mla_caption="{+caption+}<hr>" will give you what you need.

    Of course, you can also define custom Style and Markup Templates to have complete control over the CSS styles and HTML markup for your galleries. The Settings/Media library Assistant Documentation tab has more information on that topic.

    I am marking this topic resolved, but please update it if you have problems with or further questions about adding tags to your captions and galleries. Thanks for your interest in the plugin.

    Thread Starter tsea

    (@tsea)

    ‘mla_caption’ => ‘{+caption+}<hr>’ did work but it was displaying on images that did not have a text caption.

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your clarification. You can use a Content Template to eliminate the <hr> display when the caption is blank. Try changing your parameter to this alternative:

    mla_caption='{+template:({+caption+}<hr>)+}'

    The parentheses around the {+caption+}<hr> portion tell the template processor to eliminate the caption and the <hr> when there is no text in the original caption.

    Let me know if you have any problems with that alternative.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding HTML to gallery display’ is closed to new replies.