• Resolved pphq

    (@pphq)


    Just installed Easy FancyBox plugin after old Fancybox plugin ( fancybox 1.2.6) stopped working due to compatibility issues with current version of WordPress (4.9.8).

    Our theme was customised from Starkers 6 years ago by a developer who no longer does freelance work.

    I removed old links in header.php
    <script src=”https://code.jquery.com/jquery-latest.js&#8221; type=”text/javascript”></script>
    <link rel=”stylesheet” href=”<?= site_url() ?>/fancybox/source/jquery.fancybox.css?v=2.1.4″ type=”text/css” media=”screen” />
    <script type=”text/javascript” src=”<?= site_url() ?>/fancybox/source/jquery.fancybox.pack.js?v=2.1.4″></script>
    <script type=”text/javascript”>

    $(function(){
    $(“.fancybox-video”).fancybox({
    padding: 5,
    width: 850,
    height: 635,
    fitToView : false,
    autoSize : false
    });

    $(“.fancybox”).fancybox({
    padding: 5,
    background: ‘#000’
    // helpers : { overlay: { opacity: 0.8, css: {‘background-color’: ‘#000000’} } }
    });
    });

    </script>

    I’ve read through the trouble shooting steps and wonder if the footer tag <?php get_footer(); ?> make the plugin incompatible with our site?

    Many thanks

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

Viewing 1 replies (of 1 total)
  • Hi, if your theme is missing the required <?php get_footer(); ?> part, Easy FancyBox will not work out of the box. I recommend adding the required code to your theme footer.php file just before the </body> tag (it will help with other plugin problems as well)

    But if you cannot do this, there is an option under the Compatibility settings on your Settings > Media admin page, called “Move scripts from footer to theme head section”. Check this box and save. Your FancyBox should start working ??

Viewing 1 replies (of 1 total)
  • The topic ‘Easy FancyBox not working on old site’ is closed to new replies.