WordPress.org

Ready to get started?Download WordPress

Forums

FancyBox
setting fancybox iframe dimensions (2 posts)

  1. scruff
    Member
    Posted 2 years ago #

    i am using the fancybox plugin to show a Vimeo video in an iframe
    http://happyhourproductions.co.uk/news/2007/04/ivca/
    click the thumbnail top right

    the iframe/video takes up the whole screen, i would like to know how to control the dimensions - i want it to be 640x360

    is this possible? how is it done?

    http://wordpress.org/extend/plugins/fancy-box/

  2. bsvikss
    Member
    Posted 1 year ago #

    This worked for me:

    <script type="text/javascript">
    jQuery(document).ready(function($) {
    $("a.fancybox.iframe").fancybox({
    'frameWidth': 640,
    'frameHeight': 360,
    });
    });
    </script>

    Put this in your header. Or below and your class would be fancybox iframe-vimeo

    <script type="text/javascript">
    jQuery(document).ready(function($) {
    $("a.fancybox.iframe-vimeo").fancybox({
    'frameWidth': 640,
    'frameHeight': 360,
    });
    });
    </script>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic