Support » Plugins » [Plugin: Easy Fancybox] Not working in Opera and Firefox

  • Resolved robertjakobson


    Fancybox works in IE and Chrome, but does not in Opera and Firefox. I happen to get an error just like this in Firebug that might be the cause of the malfunction:

    Firebug's log limit has been reached. 0 entries not shown.		Preferences
    $("a.fancybox").fancybox is not a function
    [Break On This Error] $('a.fancybox').fancybox( $.extend({}, fb_opts, { }) );

    Thanks for the help!

Viewing 9 replies - 1 through 9 (of 9 total)
  • $('a.fancybox').fancybox( $.extend({}, fb_opts, { }) );

    Just to be precise, the faulty line is quoted as code above!

    The problem is that you are loading this script TWICE and in the WRONG location:

    <script type="text/javascript" src=""></script>

    I see it once completely at the top right after <head> and once in the body section right after <header id="branding" role="banner">

    Remove that last one and move the first one to right AFTER the part

    <script type="text/javascript">

    Yes, that is exactly what I thought as well, did not go that route because another issue popped up – thanks a ton!

    The only problem is that I am not capable of moving the files since they come straight from wp_head, which should be placed just before </head>

    Should I delete head.js and just try to this naturally?

    I swear, wp_head is moving the files to the wrong place and loading the script twice – not me!

    It’s probably not so much WP (or wp_head) that decides the order here but that scripts-gzip plugin thing… Try deactivating it.

    I have no idea why it would throw these compressed script files right at the top there or even how it gets away with placing them a second time outside the head section — which cannot possible be via the wp_head() call unless you have more than one in your theme. You might ask the scripts-gzip plugin developer for some clearer tips on how to set it up.

    What I quickly (without much further reading) understand is that it hooks right into the template function get_header() … I suspect it reads and messes with the complete header.php file before it is used in the template. So there might be some theme incompatibility going on there, causing this weird result.

    Yes, you are correct, I have used this plugin elsewhere as well with the same problem occurring. however it is the only gzip plugin that I have found that really works.

    RavanH, do you have a PayPal donation link going on for you? I started to think that you generously pushed me on the right track, even though I knew the solution, but I was too focused on other things, and so deserve some credit.

    I am also wondering is it possible to add FLV file support for Easy Fancybox? I will start a new thread requesting it, if it is appropriate.

    Did you ever try W3 Total Cache? It provides maybe more than you need but it does have some pretty good script and css packing stuff available. It depends on your provider which part you can use but you may be able to take advantage of the DB object and page caches too ๐Ÿ™‚

    About the FLV support: It’s an interesting thought but I’ll have to investigate it. Any participation by others would be appreciated so, yes please, if you could start a new thread on the subject via ?

    And do I have a PayPal donate button? Well… yeah! You can find it on or look on your admin Settings > Media page (right side in the FancyBox section) … Thanks! ๐Ÿ™‚

    I am already using W3 Total Cache basically to the max I can (no CDN right now for development/test site) and I have used it once or twice previously to the absolute maximum it offers, however itยดs gzipping functionality is some what manual, if I remember correctly and depends on the templates – while developing it is hard to to define the files to be gzipped manually since they change quite regularly.

    I got Scripts Gzip working BTW, unfortunately it does keep the javascript files in the head – but there is another plugin that might move them for me, or I will move them myself

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: Easy Fancybox] Not working in Opera and Firefox’ is closed to new replies.