• Resolved evenstephen

    (@evenstephen)


    On the linked page, I’m getting the following error in the console, regardless of the element I select on the page.

    Seems like it’s an issue with Jquery?

    stickThis.js?ver=2.1.1:10 Uncaught TypeError: $(…).stickThis is not a function
    at HTMLDocument.<anonymous> (stickThis.js?ver=2.1.1:10)
    at i (jquery-1.12.4.min.js:2)
    at Object.fireWith [as resolveWith] (jquery-1.12.4.min.js:2)
    at Function.ready (jquery-1.12.4.min.js:2)
    at HTMLDocument.K (jquery-1.12.4.min.js:2)

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • This is because there is more than one instance of the jQuery library loading on your page.

    First, the standard one that comes with WordPress is loading. Then later after that, another one comes in:

    <script
      src="https://code.jquery.com/jquery-1.12.4.min.js"
      integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ="
      crossorigin="anonymous"></script>

    You should always only load one instance, or else it will create conflicts (as you see with your site).

Viewing 1 replies (of 1 total)

The topic ‘stickThis is not a function error in console’ is closed to new replies.