Scripts not loading
-
I’m trying to discover what I changed so that my scripts are no longer loading.
All jquery/plugin scripts are absent when viewing source and I’m getting 3 ‘ReferenceError: $ is not defined’ messages.
Yesterday I used a custom function to move scripts from header to footer, then removed that function because some scripts wouldn’t then work.
Maybe I’m not seeing a typo somewhere?
I’ll continue working-through this to find the cause, and meantime post this in the hope that someone has ideas.
UPDATE: 1-minute later…
Removing <?php if ( is_singular() ) wp_enqueue_script( ‘comment-reply’ ); wp_head(); ?> was the issue.
I don’t use comments and so removed the whole tag.
With <?php wp_head(); ?> now restored, all ok.
- The topic ‘Scripts not loading’ is closed to new replies.