Ready to get started?Download WordPress


What's the final word on WordPress and jQuery? (3 posts)

  1. Matt
    Posted 6 years ago #

    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.


  2. Matt
    Posted 6 years ago #


  3. Matt
    Posted 6 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic