Easy FancyBox not working on old site
-
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” 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]
- The topic ‘Easy FancyBox not working on old site’ is closed to new replies.