0

i don't understand why the fancybox2 media helper isn't loading my vimeo content into a fancyboc, instead it is launching my video on the vimeo site.

any help is greatly appreciated.

will

from my fancybox.js file
$('.fancybox-media-evcc') $(".fancybox").fancybox({ helpers : { media : {} } });

from my html file
<p><a class="fancybox-media-evcc" href="http://vimeo.com/58950757"> <img src="images/thumbs/video.jpg" alt="Video prepared for the NYC Landmarks Commission"></a> </p>

1 Answer 1

0

This :

$('.fancybox-media-evcc') $(".fancybox").fancybox({ helpers : { media : {} } });

... is incorrect, it should rather be :

$('.fancybox-media-evcc').fancybox({ 
    helpers : { 
      media : {} 
    } 
});

Or you could have both :

// for elements with class fancybox
$(".fancybox").fancybox(); 

// for elements with class fancybox-media-evcc
$('.fancybox-media-evcc').fancybox({ 
    helpers : { 
      media : {} 
    } 
});

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.