jquery do not seem to be loaded
-
Hello
I have added to functions.php a custom script that should be available to every page.
Like this:
function mytheme_custom_scripts(){ wp_register_script( 'bpopup', '//www.soeezauto.com/js/bpopup_16051.js', array('jquery'),null,true); wp_enqueue_script( 'bpopup' ); } add_action('wp_enqueue_scripts', 'mytheme_custom_scripts');
It does load the script and calls it, but gives me a type error the first time it encounters a jquery $ sign, which is a good sign that it does not have the jquery library.
This is the line that generates the type error:
var wwdt = $(window).width();
You can check this at: this link
I did check around my installation to see if there is any other call to jquery but there isn’t.
Note that this is a WordPress installation on a “regular” website.
Appreciate any assistance.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘jquery do not seem to be loaded’ is closed to new replies.