• Resolved galiof

    (@galiof)


    Hello. I try to use your plugin on the site page, but an error appears. I attach the link to the site page.
    Links are now contained in the first two pictures of the block “Completed work”. But the pictures open in a new window.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Miha

    (@mplusb)

    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 4 years, 9 months ago by diasamidze.
    • This reply was modified 4 years, 9 months ago by diasamidze.
    Plugin Support Miha

    (@mplusb)

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘jQuery(…).fancyboxforwp is not a function’ is closed to new replies.