Last active
June 1, 2016 02:39
-
-
Save rakeshkumar125/c60d2375e2d88679fd26c91ccf4ea5c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wp_enqueue_style( | |
'fancyboxstyles', | |
WP_PLUGIN_URL.'/chat/custom.css', | |
false, | |
all); | |
function my_init() { | |
if (!is_admin()) { | |
wp_deregister_script('jquery'); | |
wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js', false, '1.3.2', true); | |
wp_enqueue_script('jquery'); | |
// load a JS file from my theme: js/theme.js | |
wp_enqueue_script('my_script', WP_PLUGIN_URL.'/chat/chat.js', array('jquery'), '1.0', true); | |
} | |
} | |
add_action('init', 'my_init'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment