Title: Auto Launch
Last modified: August 20, 2016

---

# Auto Launch

 *  [leatherbarrow](https://wordpress.org/support/users/leatherbarrow/)
 * (@leatherbarrow)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/auto-launch/)
 * Hi,
 * I am looking to get a youtube vid to automatically pop up in lightbox plus on
   my homepage.
 * Can anyone advise how this is done.
 * Thanks.
 * Adam.
 * [http://wordpress.org/extend/plugins/lightbox-plus/](http://wordpress.org/extend/plugins/lightbox-plus/)

Viewing 1 replies (of 1 total)

 *  [VeganPirate](https://wordpress.org/support/users/veganpirate/)
 * (@veganpirate)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/auto-launch/#post-3525052)
 * I have just achieved this on my site – example of it working for a picture: [My test](http://govegan.org.nz/pop-up-test/)
 * There are 2 main steps towards getting it to work.
 * Firstly, in the plugin options you need to tick the “Add Inline Lightboxes” option.
   A new section will be displayed at the bottom of the page. For one of these options,
   choose to ‘Auto Open’.
 * Secondly, you need to add the code for the Inline Lightbox. This has 2 parts.
   Part 1 is the stuff you want displayed on the page itself (so maybe you want 
   the video to be displayed there too, or if you want nothing, then use a 1×1 image
   which is essentially hidden). Part 2 is the inline part which is displayed in
   the lightbox. It consists of a hidden outer div, and an inner div that contains
   the content.
 * This code makes a video pop up from (what looks like) nowhere. If you want the
   video to be on the page to, simply replace the image with the video’s code:
 *     ```
       <a class="lbp-inline-link-2" title="movie" href="http://www.youtube.com/embed/grtJlJK7p5A"><img alt="" src="http://govegan.org.nz/pictures/blank.jpg" width="1" height="1" /></a>
   
       <div style="display: none;">
       <div id="lbp-inline-href-2" style="padding: 10px; background: #fff;"><iframe src="http://www.youtube.com/embed/grtJlJK7p5A" height="500" width="500" allowfullscreen="" frameborder="0"></iframe></div>
       </div>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Auto Launch’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/lightbox-plus_fafafa.svg)
 * [Lightbox Plus Colorbox](https://wordpress.org/plugins/lightbox-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lightbox-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lightbox-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/lightbox-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lightbox-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lightbox-plus/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [VeganPirate](https://wordpress.org/support/users/veganpirate/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/auto-launch/#post-3525052)
 * Status: not resolved