Site logo

Archived topic

Custom JavaScript Not Running

2 replies · Started by Heather on July 16, 2019

Viewing posts 1–3 of 3

Hello,

I am trying to have some JS code run for a navigation transition on click of a hamburger menu, and no matter where I put the JS it is not being read by the browser. I looked at some previous tickets/topics and it said to make a Hook and put the JS within a script tag (it's actually 3 different script tags but each one is closed and I am not getting any console errors) and place it in the wp_footer, and that doesn't work. I also tried it in wp_head and after_footer with no luck either.

Any other suggestions?

Nevermind I fixed it - the issue stemmed from a $document.ready not being read as I needed to do the jQuery(document).ready.

Thanks,

Glad you figured out :)

This archived topic is closed to new replies.