As it turns out, one of the most popular starter themes at this time (Underscores) doesn’t load jQuery by default.
For those future time-travellers, add the following to your functions.php
file:
/**
* Add jquery support
*/
function jquery_scripts() {
wp_enqueue_script( 'jquery' );
}
add_action( 'wp_enqueue_scripts', 'jquery_scripts' );
If you already have a section for scripts (like the Underscores theme), just add wp_enqueue_script( 'jquery' );
to your existing *_scripts()
block.