Use wp enqueue script to add scripts on header tag
-
Please review the use of
https://codex.www.ads-software.com/Function_Reference/wp_enqueue_script
on the code, this is what I have use it to get it working:function add_scripts_method() { wp_enqueue_script('d3-simpleCharts', plugins_url( 'd3-simpleCharts.js' , __FILE__ ) ); wp_enqueue_script('d3.v3.min-script', plugins_url( 'd3.v3.min.js' , __FILE__ ) ); wp_enqueue_script('jquery-script', 'https://code.jquery.com/jquery-1.9.1.js' ); wp_enqueue_script('jquery-ui-script', 'https://code.jquery.com/ui/1.10.3/jquery-ui.js' ); } add_action( 'wp_enqueue_scripts', 'add_scripts_method' );
https://www.ads-software.com/extend/plugins/d3-simplecharts/
- The topic ‘Use wp enqueue script to add scripts on header tag’ is closed to new replies.