Uncaught ReferenceError: easy_fancybox_handler is not defined
-
Hi Easy Fancy Box,
I love the look of your plugin, but I can’t get it working for YouTube videos.
First: I downloaded the release from Plugins >Add New, but it had errors in the admin screen when WP_Debug was ‘true’. Also, auto-detect wasn’t working for me for YouTube videos. I could only get YouTube videos to open with a lightbox when I made a link with the class=”fancybox-youtube”.
Then, I downloaded the newer version that fixed the errors in the admin screen, but now the plugin isn’t working at all for youtube videos.
In my console, I get the following errors:
Uncaught ReferenceError: easy_fancybox_handler is not defined dev.mysite.com:313
(anonymous function)Which occurs in this line of code:
jQuery(document).on('ready gform_post_render', easy_fancybox_handler );
and
Uncaught SyntaxError: Unexpected token >
which occurs around this line of code:
jQuery('a[href*="youtube.com/watch"]:not(.nofancybox), area[href*="youtube.com/watch"]:not(.nofancybox)').addClass('fancybox-youtube'); jQuery('a[href*="youtu.be/"]:not(.nofancybox), area[href*="youtu.be/"]:not(.nofancybox)')<br />
Any help would be appreciated, thanks!
- The topic ‘Uncaught ReferenceError: easy_fancybox_handler is not defined’ is closed to new replies.