Register and load scripts
You don’t need if ( !is_admin() ). wp_enqueue_scripts only runs on the front end. WordPress loads jQuery in “No Conflict” mode. The $ alias does not work. Use jQuery or wrap your script is a function as demonstrated in the jQuery docs: jQuery.noConflict(); (function($){ $(function() { // more code using $ as alias to jQuery … Read more