Uncaught TypeError: $(…) stickThis is not a function
-
Hi Mark, great plugin. I’ve got it working on a site of my own (currently building locally) but I can’t seem to get it to work on a live site. Here’s an example page where I want it to maintain visibility on the sidebar on scroll:
https://collaborateny.com/5-ways-to-cohabitate-peacefully-during-your-divorce/
(Pls cut/paste the url. I wanted to avoid a hyperlink because I’ve found that in these forums, links in threads get locked into the serps forever. I’d rather not clutter this sites search results with my dirty laundry.)Uncaught TypeError: $(…).stickThis is not a function
at HTMLDocument.<anonymous> (stickThis.js?ver=2.0.1:10)
at j (jquery.min.js:2)
at Object.fireWith [as resolveWith] (jquery.min.js:2)
at Function.ready (jquery.min.js:2)
at HTMLDocument.J (jquery.min.js:2)Based on my forum research I see that this is probably a script src conflict but I was hoping to get an opinion from you. The sample page (above) only shows just the one error in Chrome’s dev console. However there’s a bunch of scripts being loaded.
This theme has apparently evolved over time across various developers. I recently inherited maintenance. (I’m not a php dev.) I checked functions.php and there’s a stylesheet being “enqueued” but no scripts. I assume that makes it likely there’s a conflict. If so, can you suggest the easiest resolution? Do I need to find the php files where all the other scripts are being loaded and change them to WordPress’s recommended enqueue method in functions.php? Thanks in advance. -Bob
- The topic ‘Uncaught TypeError: $(…) stickThis is not a function’ is closed to new replies.