WordPress.org

Ready to get started?Download WordPress

Forums

Google Chrome Frame for WordPress
wp_enqueue_script (1 post)

  1. Pat Hawks
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.