3544 posts Ruben Bristian
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
KrownThemes says

@greenline .. you should enqueue the jQuery plugin yourself if your plugin utilizes it. This is not a user error, because for example, i might work with a simple theme that has absolutely no use of jQuery (especially in a context when CSS3 can mimic simple stuff). So you should make sure that your plugin loads jQuery and depends on it..

1005 posts
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
  • Contributed a free file of the month
+6 more
greenline says

I do include jQuery in my plugin, wp_enqueue_script(“jquery”);

3544 posts Ruben Bristian
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
KrownThemes says

I do include jQuery in my plugin, wp_enqueue_script(“jquery”);

So the customer deregistered jQuery and registered his own version?! :(:D

1005 posts
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
  • Contributed a free file of the month
+6 more
greenline says


I do include jQuery in my plugin, wp_enqueue_script(“jquery”);
So the customer deregistered jQuery and registered his own version?! :(:D

Yes, unfortunately. It took me 3 days to notice, because I thought it is a more complicated issue. When I was close to “loose my mind” I downloaded myself underscores theme and compared it with twentytwelve theme => then noticed the difference.

2 posts
  • Has collected 1+ items on Envato Market
alexenvuser7 says

Hi greenline,

I know this is an old thread, but was wondering if your could share , in a bit more detail, how you got the plugin to work.

I’m pretty new with WordPress, and I’ve been trying for several days to get a plugin to work on an Underscores theme that I’m using for a client’s site.

I tried adding the following code to my functions.hph file, but I still can’t get the plugin to work:

/** * Add jquery support */ function jquery_scripts() { wp_enqueue_script( ‘jquery’ ); }

It works fine on Twenty Twelve, but not on Underscores.

Any help would be immensely appreciated! add_action( ‘wp_enqueue_scripts’, ‘jquery_scripts’ );

by
by
by
by
by
by