Viewing 15 replies - 1 through 15 (of 24 total)
  • Hi,

    At first i was thinking of two possibilities, one being that it is caused by some options in the fancybox call with null value.

    I’m uploading 2.7.5 with a fix that makes this cleaner by entirely omitting that option if not needed, which might help in your case.

    But i’ve also noticed in your site’s source code a second call to jquery in the footer, with the following url: https://www.ho1designs.com/wp-content/themes/flashnews/includes/js/jquery-1.2.1.pack.js

    jQuery can’t be loaded twice in a website: To prevent jQuery being called several times by plugins and themes, WordPress has a function called wp_script_enqueue() of which you can further read here for example: https://digwp.com/2009/06/including-jquery-in-wordpress-the-right-way/

    You will have to remove that from the theme’s source files (might be in footer.php) and contact the theme author to fix it in future releases of the theme.

    PS: Sorry i misspelled the function name, it is wp_enqueue_script()

    Thread Starter hankeester

    (@hankeester)

    Moskis,
    Thanks for the reply. I tried adding the addtional code within the header.php file that you posted the link to but it did not help. I’ll look into the footer.php and delete the function to see if that works.

    Thread Starter hankeester

    (@hankeester)

    also updated the plugin to 2.7.5 but it didn’t help any.

    Adding the code i mentioned to the header won’t help because you don’t need to make sure jquery loads – it’s already loading twice and you need to make sure it loads only once.

    You should undo that change in the header and do the following:

    You have to remove the jquery script from the footer, so take a look at footer.php and look for this:

    <script type="text/javascript" src="https://www.ho1designs.com/wp-content/themes/flashnews/includes/js/jquery-1.2.1.pack.js"></script>

    If you can’t find that, there might be a PHP include or function that prints the scripts, in which case you should try luck searching in functions.php

    When you find the line instead of just removing you may want to replace it with <?php wp_enqueue_script("jquery"); ?> so that jquery is still loaded even if you stopped using plugins in the future.

    Thread Starter hankeester

    (@hankeester)

    Thanks moskis,

    That was it, t’was in the footer.php file.

    Much appreciated.

    Thread Starter hankeester

    (@hankeester)

    well, it worked but now it messes up the featured stories up top of the homepage the scroll across

    Only thing left i can think of is that the theme’s js doesn’t support current jQuery version, the version included by the theme, 1.2.1, is quite old actually. Being a premium theme they really should be able to help you with that.

    Other option although less likely to help is try disabling other plugins that may interfere.

    If none of that helps you can also contact me at [email protected] and i can take a look at the whole blog and get it updated and fixed for a reasonable fee.

    I have the same issue: Fancybox not working
    I use the WP theme: iNove
    When I look in the hearder.php or the footer.php, I didn’t find any wp_enqueue_script and wp_head.
    But I’ve that JQuery is loaded twince. So I activate the pluggin Use Google Sources, but I still have the same issue.
    My WP is: https://www.vmnerds.fr

    Any help appreciated

    Thread Starter hankeester

    (@hankeester)

    I had to have the theme files modified. Apparently the author of the theme doesn’t update the jquery script even though it was a premium theme that I paid for. I actually sourced it out to a code jockey so I can’t tell you what code he modified.

    Thanks José,
    my issue was cause by the JQuery load of another plugin (Gtranslate).

    That worked for me. The code was in my header.php file relating to my homepage sliding banner that is built into my theme. I just cut it form my header.php and put it in my template file, which consequently is only used for the home page. Now I can use fancybox in my pages and posts, however, I would not be able to use it on my homepage.

    Hello.

    Fancybox is not working for me either.

    How can I tell if jquery is being loaded twice ?

    My blog is here:

    https://www.va3sie.com/blog/

    Many thanks!
    Martin.

    Hi there,
    I’m currently using the AutoFocus+ theme based on Thematic and ever since the WordPress update, Fancybox for WordPress will not work. The images will not load; you click on them, the screen fades and only the description shows up, off center. I’ve tried turning off all other plugins, re-installing, looking for the bit of code to replace, but honestly I’m stumped. How can I fix this issue? Thanks!
    -ELR

    https://www.ednarodriguez.com/wp/print

    I’m getting a JS error from Fancybox:
    https://mushon.com/s11osd/danl/4131/

    syntax error
    [Break on this error] 'padding': ,\n

    It worked before. Is it incompatible with 3.1?

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘[Plugin: FancyBox for WordPress] Fancybox not working’ is closed to new replies.