• Resolved snathana

    (@snathana)


    Hi, Pro user here. I have created a slider with specific product IDs, which I’m calling via the shortcode [woo_product_slider id="7784"]. I have noticed that if for any reason I include the same shortcode twice in the page, I get a Javascript error as below:

    jquery.min.js?ver=3.5.1&d88b4d&d88b4d:2 Uncaught TypeError: Cannot read property 'add' of null
        at Slick.initADA (slick.min.js?ver=2.5.12&d88b4d&d88b4d:1)
        at Slick.init (slick.min.js?ver=2.5.12&d88b4d&d88b4d:1)
        at new Slick (slick.min.js?ver=2.5.12&d88b4d&d88b4d:1)
        at s.fn.init.$.fn.slick (slick.min.js?ver=2.5.12&d88b4d&d88b4d:1)
        at HTMLDivElement.<anonymous> (scripts.min.js?ver=2.5.12&d88b4d&d88b4d:1)
        at Function.each (jquery.min.js?ver=3.5.1&d88b4d&d88b4d:2)
        at s.fn.init.each (jquery.min.js?ver=3.5.1&d88b4d&d88b4d:2)
        at HTMLDocument.<anonymous> (scripts.min.js?ver=2.5.12&d88b4d&d88b4d:1)
        at e (jquery.min.js?ver=3.5.1&d88b4d&d88b4d:2)
        at t (jquery.min.js?ver=3.5.1&d88b4d&d88b4d:2)

    I don’t see any visual impact on the site (both copies of the slider work), but I get Javascript error on the console which is not ideal UX. Can you take a look please?

    Cheers,
    Spyros

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter snathana

    (@snathana)

    Apologies, reverting the above.

    The second slider is not showing, instead it’s stuck at the preloader image.

    Plugin Author ShapedPlugin LLC

    (@shapedplugin)

    Hi @snathana,

    Sorry, for the delay. You can’t use the same shortcode twice on a page. Rather you can duplicate the shortcode from All Sliders. See this screenshot.

    After clicking on the duplicate button, you’ll find it as a draft and then, you need to publish it with the necessary customization if you want to do.

    If you need more help, please ask and open a support ticket.

    Have a good day.

    Thank you very much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Javascript error’ is closed to new replies.