WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: FancyBox for WordPress] Possible to set width and height of fancybox? (5 posts)

  1. Sridhar Katakam
    Member
    Posted 4 years ago #

    I want to open a 400x300 video in fancybox.

    Using the code below

    <div style="text-align: center;"><a class="fancybox" href="#welcomevideo"><img src="http://www.howieolson.com/wp-content/uploads/2010/04/howie-olsen-welcome-video.jpg" width="251px" height="188px" alt="Welcome To High Output"></a></div>
    
    <div style="display:none" id="welcomevideo">
    <object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=11051269&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=00ADEF&fullscreen=1&autoplay=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=11051269&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=00ADEF&fullscreen=1&autoplay=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object>
    </div>

    fancybox window size is larger than the video.

    Screenshot: http://img2.pict.com/9e/ea/7c/3398506/0/800/fancyboxprob.png

    Is it possible for me to specify the width and height of fancybox window or better yet, have it automatically adjust to the content of what's being show in the fancybox window?

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

  2. plopes3000
    Member
    Posted 4 years ago #

    Have you resolved the issue? I'm also having the same problem.

  3. plopes3000
    Member
    Posted 4 years ago #

    Wow I feel dumb. Just figured out how to set the iframe dimensions for your youtube or vimeo videos in the fancybox for wordpress plugin - go to > settings > other. Scroll down to frame size et voila! Great plugin.

  4. isocky
    Member
    Posted 3 years ago #

    Thank you! Thank you! Thank you! I went to the settings > other tab a hundred times and never scrolled down because I thought it was all about the callbacks. :)

  5. jeanneangel
    Member
    Posted 3 years ago #

    is it possible to set different sizes for the iframes if you want to have more than 1 size of iframe?

Topic Closed

This topic has been closed to new replies.

About this Topic