Title: Trouble Using Lightbox Content
Last modified: August 24, 2016

---

# Trouble Using Lightbox Content

 *  [dylan9015](https://wordpress.org/support/users/dylan9015/)
 * (@dylan9015)
 * [11 years ago](https://wordpress.org/support/topic/trouble-using-lightbox-content/)
 * So I’m trying to display a ninja form in a light-box, But i’m having trouble 
   getting the light-box to display. I’m sure it’s a simple fix, but here’s my
    
   code.
 *     ```
       [lightbox_content id="PTO-Form" width="70%" text_align="left"][ninja_forms id=5][/lightbox_content]
       <div id="PTO-Form">
       <a href="#">PTO Form</a>
       </div>
       ```
   
 * Hopefully you can help!
 * [https://wordpress.org/plugins/shortcodes-ultimate/](https://wordpress.org/plugins/shortcodes-ultimate/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [AJD](https://wordpress.org/support/users/ajd/)
 * (@ajd)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/trouble-using-lightbox-content/#post-6131080)
 * It is hard to find the documentation on this, but it is quite easy to get an 
   inline lightbox working:
 * First from the list of shortcodes screen insert the ‘Lighbox’, make sure you 
   set the selector with ‘.’ or ‘#’, in this case I used: #popup
 *     ```
       [lightbox type="inline" src="#popup"][button] Click Here to open popup. This can also be any <a> tag. [/button][/lightbox]
       ```
   
 * Next insert ‘Lightbox content’, here you don’t have to use the . or #, just the
   same selector from above: popup
 * `[lightbox_content id="popup"]Hello this is in a popup lightbox. You can put 
   anything in here, including shortcodes.[/lightbox_content]`
 *  [Reptar7](https://wordpress.org/support/users/reptar7/)
 * (@reptar7)
 * [10 years ago](https://wordpress.org/support/topic/trouble-using-lightbox-content/#post-6131191)
 * [@ajd](https://wordpress.org/support/users/ajd/)
 * Thanks for this info. I was searching for the documentation on how to get this
   to work and your post helped me a lot.
 * I am using the SU lightbox with a link to create click triggers that open email
   popups. This is a feature that you usually need to have a premium email service
   plan to use, for instance, SumoMe wants $20 per month to do this. Using this 
   plugin let’s me do this for free.
 * Basically, a link opens a popup with a subscribe form in it.
 * The code I used for the link is:
 *     ```
       [su_lightbox type="inline" src="#click-trigger"][su_permalink]Click Here to open popup.[/su_permalink][/su_lightbox]
       ```
   
 * The code for the lightbox content is:
 *     ```
       [su_lightbox_content id="click-trigger" width="60%"]
       Call to action text then email form embed.
       [/su_lightbox_content]
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Trouble Using Lightbox Content’ is closed to new replies.

 * ![](https://ps.w.org/shortcodes-ultimate/assets/icon-256x256.gif?rev=2547563)
 * [WP Shortcodes Plugin — Shortcodes Ultimate](https://wordpress.org/plugins/shortcodes-ultimate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcodes-ultimate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcodes-ultimate/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcodes-ultimate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcodes-ultimate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcodes-ultimate/reviews/)

## Tags

 * [display](https://wordpress.org/support/topic-tag/display/)
 * [form](https://wordpress.org/support/topic-tag/form/)
 * [LIGHT BOX](https://wordpress.org/support/topic-tag/light-box/)
 * [ninja](https://wordpress.org/support/topic-tag/ninja/)

 * 2 replies
 * 3 participants
 * Last reply from: [Reptar7](https://wordpress.org/support/users/reptar7/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/trouble-using-lightbox-content/#post-6131191)
 * Status: not resolved