Excellent info. This solved a problem I’ve spent weeks researching. I added
<?php wp_enqueue_script(“jquery”); ?>
<?php wp_head(); ?>
and then followed geraldyeo’s suggestion above. I then watched in wonder as I saw javascript doing what it’s supposed to do. Thank you for giving me my time back to tackle the next coding mystery. Til we commiserate and solve again!