• Could you please use wp_enqueue_script() instead of just echoing the script tag directly?

    if(get_option('google-chrome-javascript')){
    add_action('wp_enqueue_scripts','kws_google_chrome_js');
    }

    function kws_google_chrome_js(){
    wp_enqueue_script('chrome-frame','http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js',false,'1');
    }

    http://wordpress.org/extend/plugins/google-chrome-frame/

  • The topic ‘wp_enqueue_script’ is closed to new replies.