3395 posts Nice Guy
  • Most Wanted Bounty Winner
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 6-7 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Won a Competition
  • Bought between 100 and 499 items
  • Exclusive Author
  • Referred between 500 and 999 users
+5 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..

901 posts
  • Author had a Free File of the Month
  • Grew a moustache for the Envato Movember competition
  • Sold between 10 000 and 50 000 dollars
  • Beta Tester
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Bought between 50 and 99 items
  • Referred between 1 and 9 users
  • Has been a member for 1-2 years
greenline says

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

3395 posts Nice Guy
  • Most Wanted Bounty Winner
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 6-7 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Won a Competition
  • Bought between 100 and 499 items
  • Exclusive Author
  • Referred between 500 and 999 users
+5 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

901 posts
  • Author had a Free File of the Month
  • Grew a moustache for the Envato Movember competition
  • Sold between 10 000 and 50 000 dollars
  • Beta Tester
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Bought between 50 and 99 items
  • Referred between 1 and 9 users
  • Has been a member for 1-2 years
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
  • Bought between 1 and 9 items
  • Has been a member for 0-1 years
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