I've spent the whole afternoon on this and have come to some bizarre/surprising conclusions; here are my notes/impressions/summary:
what it says in book: include this
<?php wp_enqueue_script('jquery'); ?>
<head> in header.php or in
however: neither one of these worked.. only thing that worked was including jquery core thus:
BUT: after a lot of haggling I realized I don't need to include jquery core, it's already included, BUT:
in the two ways I included my own scripts:
1) what it says in the book:
(inside theme dir)
2) my own doing:
(outside theme dir)
both of these work, HOWEVER:
they only work if and only if I don't wrap the stmts in
also, I included a test console stmt at the bottom of jquery core file
and this one also, only worked if and only if I did not wrap it in
if I do wrap them in the document.ready wrapper it says in console:
$ is not a function.....
this is so bizarre, I don't know what to make of this....
any comments? suggestions?