set dependcy when enqueue the javascript
-
in line 79 add:
array('jquery')
wp_enqueue_script( 'q-a-plus', Q_A_PLUS_URL . '/js/q-a-plus.js', array('jquery'), $qaplus_options['version'], true );
see also: https://bassjobsen.weblogs.fm/wordpress-development-properly-load-javascript-set-dependency/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘set dependcy when enqueue the javascript’ is closed to new replies.