Development,  WordPress

Using dollar sign $ and jQuery in WordPress

As you may noticed, your jQuery scripts under WordPress environment may not work correctly while using $ (dollar sign) as jQuery handler. Why? Because there are conflict between your jQuery and WP’s jquery. So, what shall I do? There are a few good solutions to avoid this.

First:

Second (my fav if there is no problem with document.ready check):

Third (my fav when you need to hook document.ready event)


Easy and simple.

Leave a Reply

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