Support » Plugins » How to use lightbox shortcode in html file?

  • Resolved ryanmccauley211

    (@ryanmccauley211)


    Hi,

    I’m using WP video lightbox but instead of embedding the video in a post or page is there a way to include the embedded videos in an html document and automatically use the shortcode to launch them on the post? I would post this on a page:

    [video_lightbox_youtube video_id=”cITNwEkCsdQ” width=”640″ height=”480″ alt=”alt text for the image” auto_thumb=”1″]

    How do I use this but in an html document instead?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you mean a php file then you can just do:

    <?php echo do_shortcode( [video_lightbox_youtube video_id="cITNwEkCsdQ" width="640" height="480" alt="alt text for the image" auto_thumb="1"]'' ); ?>
    Thread Starter ryanmccauley211

    (@ryanmccauley211)

    Yes that worked thank you !! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to use lightbox shortcode in html file?’ is closed to new replies.