Hello @galiof,
Please go to this file: fancybox-for-wordpress/fancybox.php on line 175
wp_register_script( 'fancybox', FBFW_URL . 'assets/js/jquery.fancybox.js', $jquery, '1.3.4', $footer ); // Main Fancybox script
Replace fancybox with fancyboxforwp
Save the file and this will fix it.
Warmly,
Mihaela
wp_register_script( ‘fancyboxforwp’, FBFW_URL . ‘assets/js/jquery.fancybox.js’, $jquery, ‘1.3.4’, $footer ); // Main Fancybox script
The error didnt fixed:
(index):108 Uncaught TypeError: jQuery(…).fancyboxforwp is not a function
at HTMLDocument.<anonymous> ((index):108)
at i (jquery.js?ver=1.12.4-wp:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
at Function.ready (jquery.js?ver=1.12.4-wp:2)
at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)
all pages of site https://alphastyles.ru/
-
This reply was modified 6 years, 3 months ago by
diasamidze.
-
This reply was modified 6 years, 3 months ago by
diasamidze.
Hi @diasamidze,
I’m sorry, I forgot to mention to also replace here: https://github.com/MachoThemes/fancybox-for-wordpress/blob/master/fancybox.php#L178
Same file, line 178.
Thank you,
Mihaela