• Resolved Futuresweb

    (@webmasterfutureswebcom)


    The pdf files don’t open up in the lightbox anymore. I rolled back to version 1.6.3 and it works fine.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi, it sounds like an incompatibility with your theme. Can you share a link?

    Thread Starter Futuresweb

    (@webmasterfutureswebcom)

    But the pdf lightbox works with your plugin version 1.6.3

    I’ve already rolled back so you won’t see any errors.

    https://www.patiohq.com

    OK and did you clear the (super) cache after the upgrade? Which plugin are you using for script concatenation? There might be an incompatibility there…

    I also noticed the Magnific light box is running on your site. You could consider using that one for all your light box needs (instead of loading two different light box scripts) to keep site load times lower.

    Thread Starter Futuresweb

    (@webmasterfutureswebcom)

    Yes, I cleared the cache. WP Super Cache by Automattic.

    Magnific lightbox I believe is part of the theme we are using which is Nitro by Woorockets.

    I just tried it again with version 1.7.0 and it still breaks the pdf lightbox. I left it on version 1.7.0 so maybe you can see something.

    OK, it looks like the complete inline script part has been removed by the JS minification/concatenation plugin you are using. What plugin is that?

    You had previous fancybox scripts excluded I think, but because their names have changed the exclusion does not work anymore. The main script file is now jquery.fancybox.min.js … could you exclude that one and see if it starts working then?

    Also, there is a bit of code in your source that is not right. You might recognize it as it seems to come from a theme (or plugin) option:

    
    <script>
    /**
     * Write your custom Javascript code here.
     */
    
    <script id="mcjs">!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,"script","https://chimpstatic.com/mcjs-connected/js/users/b7541e33036b766afb28af2b4/c5377ac02a9b1f2d1e7178e30.js");
    
    </script>
    </script>
    

    You need to remove <script id="mcjs"> and </script> from that option field as the output is already wrapped in script tags. If the chimpstatic code MUST have an ID, then it should be placed in a Custom HTML widget or be hard coded in your theme footer.php (or otherwise inserted)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Version 1.7 breaks pdf lightbox’ is closed to new replies.