Fancy box stop work for new posts
-
Hello,
we use newset Jquery for our new website (version 3.5.1),
now when we update WP and plugin fancy box stop working for new posts (still work on old).When I change jquery to default all working btw.. (but we need this 3.5.1 for other functions…)
Here is som console log:
Uncaught TypeError: Cannot read property ‘length’ of undefined
at HTMLAnchorElement.caption ((index):131)
at HTMLAnchorElement.<anonymous> (jquery.fancybox.js?ver=1.3.4:793)
at Function.each (jquery.min.js:2)
at FancyBox.addContent (jquery.fancybox.js?ver=1.3.4:667)
at new FancyBox (jquery.fancybox.js?ver=1.3.4:553)
at Object.open (jquery.fancybox.js?ver=1.3.4:3068)
at HTMLAnchorElement._run (jquery.fancybox.js?ver=1.3.4:3355)
at HTMLAnchorElement.dispatch (jquery.min.js:2)
at HTMLAnchorElement.v.handle (jquery.min.js:2)And here is problem part I think:
if ( item.type === ‘image’ && title.length ) {caption = (caption.length ? caption + ‘<br />’ : ”) + ‘<p class=”caption-title”>’+title+'</p>’ ;}return caption;},
- The topic ‘Fancy box stop work for new posts’ is closed to new replies.