Title: Adding a span tag&#8230;
Last modified: August 21, 2016

---

# Adding a span tag…

 *  Resolved [Tye](https://wordpress.org/support/users/schtick/)
 * (@schtick)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/adding-a-span-tag/)
 * Hey this is a great plugin David, been looking for something like this for a 
   while.
 * I was wondering if it’s easy enough to add a “span” tag after the “a”? If so,
   how would I go about doing that?
 * [http://wordpress.org/plugins/media-library-assistant/](http://wordpress.org/plugins/media-library-assistant/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/adding-a-span-tag/#post-4163193)
 * 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.

 * ![](https://ps.w.org/media-library-assistant/assets/icon-256x256.png?rev=973502)
 * [Media Library Assistant](https://wordpress.org/plugins/media-library-assistant/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-library-assistant/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-library-assistant/)
 * [Active Topics](https://wordpress.org/support/plugin/media-library-assistant/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-library-assistant/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-library-assistant/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [David Lingren](https://wordpress.org/support/users/dglingren/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/adding-a-span-tag/#post-4163193)
 * Status: resolved