xxxxxxxxxx
//Add this to your functions.pho or plugin or snippet
add_action('wp_head', function (){
?>
<script>PASTE GLOBAL JS CODE HERE</script>
<style>PASTE GLOBAL STYLE CODE HERE</style>
<?php
});
xxxxxxxxxx
add_action( 'wp_enqueue_scripts', 'my_custom_script_load' );
function my_custom_script_load(){
wp_enqueue_script( 'my-custom-script', get_stylesheet_directory_uri() . '/custom-scripts', array( 'jquery' ) );
}
xxxxxxxxxx
function jquery_tabify() {
wp_enqueue_script(
'jquery-tabify',
'http://site.com/jquery.tabify.js',
array( 'jquery' )
);
}
add_action( 'wp_enqueue_scripts', 'jquery_tabify' );