• Resolved ACEkin

    (@acekin)


    I am currently using another lightbox plugin which allows me to pass dimension parameters along with the video link and it works like a charm. With Easy Fancybox I have tried the following without success:

    1. Activate Vimeo and check Auto Detect, it opens in default size
    2. Removed default pixel dimensions, the same
    3. I improvised and added the following:
      class=”fancybox-vimeo {width:1280,height:720}”
      but still reverts to the default size

    Is it possible to pass the Vimeo, or any other video size as parameters to Easy Fancybox so that the video opens in the correct size if the screen is large enough, then auto resizes if the viewport is not large enough? Without this, I cannot make the switch to EF.

    Thank you,

    Cemal

    https://wordpress.org/plugins/easy-fancybox/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi, step 3 is good but you need to enable the option “Include jQuery Metadata extension…” on Settings > Media to make it work.

    Thread Starter ACEkin

    (@acekin)

    Thank you and a happy new year to you.

    I tried the suggestion and still have no luck. If you want to see what is happening please visit the following post:

    http://www.testbeds.info/test-post/

    You will see two Fancybox links to play the video. One has the dimensions passed but does not scale the width proportionately. The second has no dimensions and I was hoping for auto detect to work but it reverts to the specified dimensions.

    Take care, and I appreciate your taking time to respond to support questions on new year’s eve.

    Cemal

    It looks like that second link with class="fancybox-vimeo {width:1280,height:720}" works fine but if you try it on a screen of smaller width or height then the lightbox will indeed be adapted to fit inside the viewport. FancyBox only does proportional scaling with images, not iframe content…

    You could try adding ,autoScale:'true' to the size parameters but it will probably result in a awkwardly large video on small devices.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pass video dimensions to Easy Fancybox’ is closed to new replies.