The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

d3 simplecharts
Use wp enqueue style to add css to header (4 posts)

  1. cheche
    Posted 3 years ago #

    according to:

    Please review this code as a better way to add style files on the plugin.

    function d3simplecharts_add_stylesheets() {
            wp_register_style( 'nv.d3-style', plugins_url('nvd3/nv.d3.css', __FILE__) );
            wp_enqueue_style( 'nv.d3-style' );
            wp_register_style( 'd3chart-style', plugins_url('d3chart.css', __FILE__) );
            wp_enqueue_style( 'd3chart-style' );
            wp_register_style( 'query-ui-style', 'http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css' );
            wp_enqueue_style( 'query-ui-style' );
            wp_register_style( 'rickshaw.min-style', plugins_url('rickshaw/rickshaw.min.css ', __FILE__) );
            wp_enqueue_style( 'rickshaw.min-style' );
    add_action( 'wp_enqueue_scripts', 'd3simplecharts_add_stylesheets' );


  2. Jouni Santara
    Plugin Author

    Posted 3 years ago #

    This is quite interesting - I take a closer look by tomorrow about your suggestions.

    What is your environment by the way (OS/browser) ?

  3. Jouni Santara
    Plugin Author

    Posted 3 years ago #

    Btw, I sent you further info by email - check that out.

  4. cheche
    Posted 3 years ago #

    I use Debian/Iceweasel(Firefox) 20.0. I will reply to you later

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • d3 simplecharts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic