Support » Plugins » How/Where to upload “jQuery Plugins”

  • Where do I upload my jQuery plugins (jquery.validate.js for example)?

    I see alot of jQuery plugins in /wp-includes/js/jquery/ so that would lead me to believe I would upload my jQuery plugin there, but that seems like a core system directory I shouldn’t be messing with.

    Is there a special place I need to upload the jQuery plugin files?

    Or do I have to create a wordpress plugin (like a wrapper) that installs the jQuery plugin? (thus storing the jQuery plugin in the /wp-content/plugins/plugin-name/ directory)

    Or is it none of the above?

    I’ve done some googling and searched the forum but couldn’t find anything, so any help would be appreciated

Viewing 1 replies (of 1 total)
  • You don’t actually “load” JQuery stuff the way you’d load a traditional plugin, instead you’ll need to point to the file. The easiest way is to insert the code into your header.php file or any other .php page or template you’ll be loading. Here’s an example.

    <script type=”text/javascript” src=”js/jquery.js”></script>

    This points to the directory ‘js’ in the root of the WordPress installation, not of your theme.

    Hope that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘How/Where to upload “jQuery Plugins”’ is closed to new replies.