Shadowbox JS
youtube iframe not working, but thumbnail works (2 posts)

  1. riomusi
    Posted 5 years ago #

    I am using latest shadowbox-js, with smart loading set to false.
    here is my code

    <a href="http://www.youtube.com/v/RnAqH0_InbA" rel="shadowbox"><img src="http://img.youtube.com/vi/RnAqH0_InbA/0.jpg" /></a>
    <iframe rel="shadowbox" width="640" height="510" src="http://www.youtube.com/embed/RnAqH0_InbA" frameborder="0" allowfullscreen></iframe>

    here is the page http://www.smartstretch.com/sequences/

    can anyone give me a hand? thanks!!


  2. Matt Martz
    Plugin Author

    Posted 5 years ago #

    This plugin and shadowbox.js are not designed to work with an iframe tag. It operates off of anchor <a> tags. You will need to use the <a> and <img> method for it to work with this plugin. There are ways that you could likely hack around this, but it falls outside of the scope of what this plugin was designed for.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Shadowbox JS
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic