WordPress.org

Ready to get started?Download WordPress

Forums

d3 simplecharts
Use wp enqueue script to add scripts on header tag (1 post)

  1. cheche
    Member
    Posted 1 year ago #

    Please review the use of
    http://codex.wordpress.org/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',
    		'http://code.jquery.com/jquery-1.9.1.js'
    	);
    	wp_enqueue_script('jquery-ui-script',
    		'http://code.jquery.com/ui/1.10.3/jquery-ui.js'
    	);
    }
    
    add_action( 'wp_enqueue_scripts', 'add_scripts_method' );

    http://wordpress.org/extend/plugins/d3-simplecharts/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.