How to add a simple jQuery script to WordPress?
First you need to write your script. In your theme folder create a folder called something like ‘js’. Create a file in that … Read more
First you need to write your script. In your theme folder create a folder called something like ‘js’. Create a file in that … Read more
WordPress uses jQuery in noConflict mode by default. You need to reference it using jQuery as the variable name, not $, e.g. use
By default when you enqueue jQuery in WordPress you must use jQuery, and $ is not used (this is for compatibility with other libraries). Your solution … Read more