jQuery not working in WordPress
-
I can’t seem to get jQuery to work in my WordPress theme. It’s really the simplests of scripts, yet I get no reaction at all from jQuery. I’ve already looked through the forums and google and remain clueless. Not even the alert (for testing) is working.
I’ve included in in my theme header from an external js file, and this is the code:
jQuery(document).ready(function($) { $("#container").alert("blah"); }); jQuery(document).ready(function($) { jQuery(".goodshelf_ul li:first").css("border-top: none;"); $(".custom_ul li:first").addClass("first"); }); jQuery(document).ready(function($) { $("#footer .frame:last").css("margin: 0;"); $("#footer .frame:last").addClass("last"); });
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘jQuery not working in WordPress’ is closed to new replies.