• Resolved mwsk

    (@mwsk)


    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;},

    • This topic was modified 4 years ago by mwsk.
Viewing 2 replies - 1 through 2 (of 2 total)
  • visi19

    (@visi19)

    Hello @mwsk

    Thank you for reaching out to us!
    Please rest assured, we will help asap.
    Also sending us the URL of your gallery would really help us investigate this faster.

    Looking forward to your reply!

    All the best,
    Marian

    visi19

    (@visi19)

    Hi @mwsk -> Marking this support thread as resolved due to inactivity. If you have any other questions or need further help please open a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fancy box stop work for new posts’ is closed to new replies.