We are going to discuss How to properly use jQuery noConflict mode in WordPress. Because Many times we face or jQuery not found an issue in WordPress. So, Today we are going to learn how to write the jQuery code in WordPress.

jQuery noConflict mode in WordPress

So whenever you need to write the jQuery code in WordPress then you should follow the jQuery noConflict syntax. Just follow the below code for writing jQuery noConflict mode syntax.

 

Now, you can write the jQuery code using $ and jQuery. Now you don’t get the $ or jQuery is not defined error on console.

Still, If you face any issue on jQuery in WordPress please write the comment below.

Leave a Reply