Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1363420

    Hi,
    I have an uncaught type error happened. media elements are not a function.
    see the screenshot from the link below.
    https://snipboard.io/pvlIet.jpg
    Is it an option that I have to opt-out from the Enfold>Performance
    Thanks to let me know.

    #1363477

    this comes from your search-box : View Our Stock
    you embedded that script via code-block – maybe you try better to embed it via child-theme functions.php
    i don’t know where inline js is loaded – but if it loaded before jQuery is present then an error message would certainly be expected.
    Do you load your jQuery in the footer? See: Enfold Child – Performance : “Load jQuery In Your Footer” Option

    Edit: if i look to that ( not minified ) script : https://apsr.autoplay.co.nz/Content/js/loader.search.box.js it seems that the script is loading its own jQuery from different external sources – maybe that comes into conflict with Enfold jQuery.

    #1363501

    Hi,

    Are you loading another jQuery version other than the default WordPress version? I had a look at your front page, but I couldn’t see the error which is in your screenshot.

    Best regards,
    Rikard

    #1363605

    yes Rikard – it comes from the search-box inline js file in that codeblock : View Our Stock

    #1363644

    Hi,

    Thanks for your help @guenni007 :)

    Regards,
    Yigit

    #1364177

    Thanks @guenni007 for the tips.
    I’ve checked the “load jQuery in the footer option” in the Enfold>Performance.

    Also, can you advise guys where exactly or on which line in functions.php” to insert the script from the Code-block.
    I’ve tried but can’t figure it out.

    #1364227

    Hi,

    Thanks for the update. What code are you looking to add, and where should it go?

    Best regards,
    Rikard

    #1364281

    https://kriesi.at/support/topic/jquery-uncaught-type-error/#post-1363477 the script is linked to the not minified script.

    #1364306

    Hi, the script from the code-block on the homepage is below in the private content.

    #1364307

    And the script from the code-block on the stock page is below in the private content.

    #1364344

    Hi,

    Thanks for that, and where exactly should this code go? If you don’t know, then please ask the authors of the code.

    Best regards,
    Rikard

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.