WordPress.org

Support

Support » How-To and Troubleshooting » What’s the final word on WordPress and jQuery?

What’s the final word on WordPress and jQuery?

  • Matt
    Member

    @intellivision

    I’ve read that jQuery is “built in” to recent WordPress releases. True?

    I’ve had some success changing jQuery’s $ to “jQuery” to get it to run on my WP site. But now I’m having a hard time getting swapimage.js (a jQuery plugin) to work on another WP site:

    Error: $.data is not a function
    Source File: http://sianafashions.com/includes/jquery.swapimage.js
    Line: 39

    That’s from the JS error console in Firefox.

    Can someone give me the “bottom line” — what do I need to do to get jQuery working with WordPress… best practices, what you do, etc.

    TIA

Viewing 2 replies - 1 through 2 (of 2 total)
  • Matt
    Member

    @intellivision

    Anyone?

    Matt
    Member

    @intellivision

    Digging the interwebs has revealed that, yes, jQuery is “built-in”.

    /wp-includes/js/jquery/jquery.js <- path

    Note that jquery directory also includes many jQuery plugins like interface.js, suggest.js, etc.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘What’s the final word on WordPress and jQuery?’ is closed to new replies.