Posts Tagged ‘Wordpress’

WordPress & jQuery: Fix JavaScript error “$ is not a function”

When using jQuery in WordPress you might be surprised by a $ is not a function JavaScript error. For example, in a default WordPress 3.3.1 installation, the following JavaScript code leads to this error: $(document).ready(function() { console.log($("body")); });$(document).ready(function() { console.log($("body")); }); The reason is, that WordPress by default uses jQuery’s “no conflict mode” to avoid […]

Read more…