122 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 50+ items on Envato Market
+2 more
jayjdk says

You should add jQuery as a dependencies for the scripts that depends on jQuery.

So instead of false, use array( 'jquery' )

Also you don’t need the is_admin() stuff. The wp_enqueue_script action only runs on the front end.

1958 posts Don't Worry, Be Happy
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Made it to the Authors' Hall of Fame
  • Has referred 200+ members
+8 more
FinalDestiny says

I’d recommend you to learn how the native wp functions work and don’t rely on tutorials, when a client requests explanations you can’t just say “But wait!!! I got this from a tutorial so it must be correct!”. With this attitudine you’ll probably fail in the long-run. It’s ok to rely on tutorials to learn new stuff, but understand them, not copy paste, clients aren’t going to learn you how it works.

Just my 2c

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by