Javascript/jQuery Loading in but not executing on custom Theme
-
Hello,
I am currently writing my first custom theme from scratch, and while I have gotten alot of the theme up and running, I cannot figure out what I am doing wrong with the javascript/jQuery.
I can see that I have enqueued the scripts properly as they are visible in the generated html in chrome, I see no errors in my chrome console other than a small untyped error that I can’t get to clear. All of the scripts are showing, none of them are executing javascript OR jQuery alike.
for the Javascript/jQuery itself, if I run a local html-based copy of my website these scripts work perfectly fine so I know that by themselves the scripts are not the problem however there may be some wordpress specific thing I’m missing
I have tried:
- every method of enqueuing known to man
- clearing my browser cache (also verified I have no other caching things on my server or on my website
- turned off my plugins
- Verified that <?php wp_footer() ?> is located where it should be (just before the closing body tag on my footer)
- changed my jQuery code from $( to jQuery(
- added jQuery(document).ready(function ($) {}); to my jQuery scripts
the following are links to my code:
inewsticker.js (one of the scripts that isnt working)
The page I need help with: [log in to see the link]
- The topic ‘Javascript/jQuery Loading in but not executing on custom Theme’ is closed to new replies.