WordPress.org

Ready to get started?Download WordPress

Forums

Easy FancyBox
Vimeo overlay on homepage (5 posts)

  1. hiker4life
    Member
    Posted 1 year ago #

    I have a video that want to automatically display when a user comes to the site instead of clicking a link.

    The code is below... and here is the link to the site, http://www.wayneelsey.com/

    <div style="display:none" class="fancybox-hidden">
    <div id="fancyboxID-1" style="width:500px;height:281px;">
    <div id="fancybox-auto" class="fancybox-vimeo">
    <iframe src="http://player.vimeo.com/video/56403414" height="281" width="500" allowfullscreen="" frameborder="0"></iframe>
    </div>
    </div></div>
    
    <a href="#fancyboxID-1" class="fancybox" id="fancybox-auto">View our new video</a>

    http://wordpress.org/extend/plugins/easy-fancybox/

  2. joshguss
    Member
    Posted 1 year ago #

    Hey...

    It looks like you were able to do this. Did you use a plugin to get this to work or just some custom Javascript?

    Thanks!

  3. hiker4life
    Member
    Posted 1 year ago #

    Actually I didn't get it to work. I had to go the YouTube route. Couldn't get it to autoload only from a link would it overlay.

  4. jerominrebatet
    Member
    Posted 1 year ago #

    Hello,

    To autoload joshguss just add the "fancybox-auto"=id for auto-opening.

    hiker4life it's weird, I didn't check but you should have option to auto play the video :/

  5. RavanH
    Member
    Plugin Author

    Posted 1 year ago #

    Hiker, what if you enable the Vimeo option on Settings > Media and just do this:

    <a href="http://vimeo.com/56403414" class="fancybox-vimeo" id="fancybox-auto"></a>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic