I am trying to hide Division B on this page. Due to the nature of the WordPress template, it’s kind of difficult to do. I am trying to use javascript in the footer:
$('div#division-2 div.teampage').prev('h2').css("display","none");
This works perfectly on JSFiddle, so I’m not sure what I’m doing wrong. I also created a javascript file with the code. Can someone please give me some guidance?
In the header, you have this code:
This disables the
$shortcut. Replace$withjQueryor$jqueryin your code. For example:The reason the code in
hide-division.jsisn’t working is that while it is using$jquery(for$jquery(document).ready, at least; it still needs to use that in the body of the handler),hide-division.jsis running before the code callingnoConflict.