Viewing 3 replies - 1 through 3 (of 3 total)
  • Two things:

    1. the easing extension script is broken by the minification plugin you are using. either switch off fancy easing effects (fade, linear or swing is possible, just not the others) in the FancyBox settings or exclude the file wp-content/plugins/easy-fancybox/fancybox/jquery.easing-1.3.pack.js from minification (if that plugin allows exclusion)

    2. you are linking to an image as inline content. I understand why you are doing this but you might run into weird issues with it… If you do, link to the image directly without this hidden inline content stuff.

    Thread Starter 1parkplace

    (@1parkplace)

    Thank you!

    Changed the easing settings to fade and linear and it works now.

    You mentioned the easing was broken by the minification, however, even with the minification plugin disabled and removed, it still did not work. Maybe WordPress 3.4.1 caused a breaking change with these particular easing effects?

    All is good on this end now, thanks for your help!

    OK, then it must be something else… I notice a piece of code near the end of the page source:

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    Right at the beginning of this code snippet, there is a call to the jQuery library. This call is overwriting the jQuery library that has already been included in the head section by WordPress and this is what probably breaks the extension scripts like Easing.

    If you have any conbtrol over this code snippet (is it in the footer.php template?) you should replace that first part

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript">

    with

    <script type="text/javascript">
    if (typeof jQuery == 'undefined') {
        document.write('<' + 'script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript">');
    }</script>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Easy FancyBox] Fancy Box Partially working’ is closed to new replies.