Title: Shortcode Plugin Issues
Last modified: August 22, 2016

---

# Shortcode Plugin Issues

 *  Resolved [godthor](https://wordpress.org/support/users/godthor/)
 * (@godthor)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/shortcode-plugin-issues/)
 * I have a plugin I’ve written that handles shortcodes on pages. On those pages
   I have found that FooBox does not work. Since I’m returning the content for the
   shortcode, I thought I might have to add the rel, class and or target tags as“
   foobox” but that doesn’t work either, IE:
 * `<a class="foobox" target="foobox" rel="foobox" href="https://maineguides.com/
   wp-content/plugins/mhs_directory/uploads/1261161829_0.jpg"><img width="300" alt
   ="1261161829 0 tmb Northwood's Outfitters" title="Northwood's Outfitters " src
   ="https://maineguides.com/wp-content/plugins/mhs_directory/uploads/1261161829_0_tmb.
   jpg"></img></a>`
 * I have tried those attributes in various combinations trying to get it to work
   and no luck.
 * Here’s a page as an example: [https://maineguides.com/registered-guide/allagash-guide-inc/](https://maineguides.com/registered-guide/allagash-guide-inc/)
 * That content is rendered by my plugin via-shortcode on the page.
 * I also know that FooBox works on the site. A normal page uses FooBox just fine
   and the only issue is with content rendered by a shortcode.
 * Any help would be greatly appreciated.
 * [https://wordpress.org/plugins/foobox-image-lightbox/](https://wordpress.org/plugins/foobox-image-lightbox/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [godthor](https://wordpress.org/support/users/godthor/)
 * (@godthor)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/shortcode-plugin-issues/#post-5571780)
 * I figured it out. What I had to do was add the class of wp-image-X to my image
   and then FooBox picked it up. So, my img tag looks like:
 * `<img src="https://maineguides.com/wp-content/plugins/mhs_directory/uploads/1261161829_0_tmb.
   jpg" class="wp-image-1"></img>`
 * Without a WordPress image class on there FooBox will not notice it.
 * Hopefully this helps some other developers looking to integrate FooBox with their
   work.

Viewing 1 replies (of 1 total)

The topic ‘Shortcode Plugin Issues’ is closed to new replies.

 * ![](https://ps.w.org/foobox-image-lightbox/assets/icon-256x256.gif?rev=2667030)
 * [Lightbox & Modal Popup WordPress Plugin - FooBox](https://wordpress.org/plugins/foobox-image-lightbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/foobox-image-lightbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/foobox-image-lightbox/)
 * [Active Topics](https://wordpress.org/support/plugin/foobox-image-lightbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/foobox-image-lightbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/foobox-image-lightbox/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [godthor](https://wordpress.org/support/users/godthor/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/shortcode-plugin-issues/#post-5571780)
 * Status: resolved