Uncaught ReferenceError: jQuery is not defined error
-
Hi,
Probelem with version 1.2.1
There seem to be problem, when wp-theme jquery is loaded in site footer.
It causes
Uncaught ReferenceError: jQuery is not defined-error in site.I dig the reason for that and it seems that in /includes/Assets.php on line 10
register_block_assets-function is used withinit-action. To correctly load styles/scripts you should be usingwp_enqueue_scripts.When I change line 10 to this, everything is ok.
add_action(‘wp_enqueue_scripts’, [$self, ‘register_block_assets’]);
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Uncaught ReferenceError: jQuery is not defined error’ is closed to new replies.