Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jQuery not responding once I move it to wordpress Re: jQuery not responding once I move it to wordpress

#64399
Rob MacKay
Participant

Hey. Yea. It’s the way WordPress loads scripts to remove the problem of duplication and clashes between libraries.

have a look here:

http://codex.wordpress.org/Function_Reference/wp_enqueue_script

or just wrap your jQuery in this document ready, instead of the default:

jQuery(document).ready(function($) {