jQuery and the land of sadness
-
We had a custom theme built, which we love, for our business site. However, the theme company did some weird stuff with our jQuery and we’re having issues with some plugins, and now they are being jerks and trying to charge A LOT to fix it. I’m helpless when it comes to jQuery – can someone out there help me sort out this feedback from the plugin people?
“They wait for when all WordPress js-scripts are enqueued and then rewrite WordPress default jQuery to custom <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js”></script>(line 76) only to use ‘$’ symbol in <script src=”<?php bloginfo(‘template_directory’);?>/js/script.js”></script> (line 80). They must use ‘jQuery’ instead of ‘$’ in script.js or call js functions as jQuery(document).ready(function($) { body function here }); to use ‘$’ in functions.”
I’ve been searching and trying things and nothing has worked.
What I really need is, in plain english, what steps I need to take in fixing the code so that jQuery enqueues “the right way”. Please!
- The topic ‘jQuery and the land of sadness’ is closed to new replies.