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

    (@dglingren)

    Thanks for the compliment and the question. I want to make sure I understand what you need. I am guessing that you have an [mla_gallery] that contains items like this:

    < dt class='gallery-icon'>
    < a href='site and page' title='title'>< img width="150" height="150" src="image URL" class="attachment-thumbnail" alt="alt text" />< /a>
    < /dt>

    You want to surround the < img tag with a “span” tag. Is that right?

    If that’s right, you can use a custom markup template to add a span to the item. You can’t use mla_link_text because it is processed before the substitution fields you need are created.

    On the Settings/Media Library Assistant MLA Gallery tab give your new template a name and then copy the parts of the default template to the corresponding parts of the new template. In the “Item” section you can replace [+link+] with:

    < a title="[+title+]" href="[+link_url+]">< span>[+thumbnail_content+]< /span>< /a>

    but remove the spaces after the opening angle brackets (I put them in to get the code into this support topic).

    Give that a try and let me know if you have any problems or further questions. If I have not understood your question, tell me more specifically what you want and I’ll be more helpful.

Viewing 1 replies (of 1 total)

The topic ‘Adding a span tag…’ is closed to new replies.