-
AuthorPosts
-
September 1, 2022 at 1:55 am #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.September 1, 2022 at 1:16 pm #1363477this 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” OptionEdit: 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.
September 1, 2022 at 4:52 pm #1363501Hi,
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,
RikardSeptember 2, 2022 at 11:34 am #1363605yes Rikard – it comes from the search-box inline js file in that codeblock : View Our Stock
September 2, 2022 at 2:16 pm #1363644September 7, 2022 at 10:34 am #1364177Thanks @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.September 7, 2022 at 5:32 pm #1364227Hi,
Thanks for the update. What code are you looking to add, and where should it go?
Best regards,
RikardSeptember 8, 2022 at 7:38 am #1364281https://kriesi.at/support/topic/jquery-uncaught-type-error/#post-1363477 the script is linked to the not minified script.
September 8, 2022 at 10:51 am #1364306Hi, the script from the code-block on the homepage is below in the private content.
September 8, 2022 at 10:54 am #1364307And the script from the code-block on the stock page is below in the private content.
September 8, 2022 at 4:52 pm #1364344 -
AuthorPosts
- You must be logged in to reply to this topic.