WordPress.org

Ready to get started?Download WordPress

Forums

Lightbox Plus Colorbox
Open lightbox on page load? (8 posts)

  1. ViPeRx007
    Member
    Posted 1 year ago #

    I'm trying to figure out a way to have a lightbox automatically display when a page loads and have it play a video. Is this possible via this plugin?

    Thanks.

    http://wordpress.org/extend/plugins/lightbox-plus/

  2. Dan Zappone
    Member
    Plugin Author

    Posted 1 year ago #

    Should be in the latest version.

  3. tdillon518
    Member
    Posted 1 year ago #

    How do I configure this and/or set it up. Can't figure it out.

  4. one3rdnerd
    Member
    Posted 1 year ago #

    I would really like to hear if this feature has been added or not to the latest version?

  5. PrfctGdess
    Member
    Posted 1 year ago #

    I must be missing something basic as well - anyone figure this out? I see that the autolaunch feature has been activated in the newest version, but how do I actually make the call in my WordPress page? Sample code, anyone?

  6. video4
    Member
    Posted 1 year ago #

    This feature would save me countless hours!

    Can someone reply?

  7. Dan Zappone
    Member
    Plugin Author

    Posted 1 year ago #

    Auto open on page load will work only when Use for Page/Post settings and User For Page are active. You can then set specific settings (including auto open) in a metabox on the page editor (on only on pages no posts).

  8. VeganPirate
    Member
    Posted 1 year ago #

    I have just achieved this on my site - example of it working for a picture: My 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 1x1 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>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic