Forum Replies Created

Viewing 1 replies (of 1 total)
  • I have the same problem here and I fixed it by removing the dependency in wp_enqueue_script.

    The original code is wp_enqueue_script('thumbs_rating_scripts', thumbs_rating_url . '/js/general.js', array('jquery'), '4.0.1'); which require jQuery to be loaded. However my theme has the jQuery deregistered and replaced with a CDN one (Google API). So as there’s no registered script called jquery here, the dependency failed to meet, then WP will not load this script.

    I had it changed to wp_enqueue_script('thumbs_rating_scripts', thumbs_rating_url . '/js/general.js', array(), '4.0.1'); and it’s working now.

Viewing 1 replies (of 1 total)