How to use jQuery with WordPress

There are times you need to write some scripts for your WordPress build but using jQuery as usual isn’t going to work. Here is the best way to add your jQuery whether it’s inline or via an include.


You will need to wrap any jQuery with this:

jQuery(document).ready(function( $ ) { 
//Code goes here and can start with $

Leave comment

Your email address will not be published. Required fields are marked with *.