Skip to content

Instantly share code, notes, and snippets.

@jubalm
Created April 30, 2012 02:50
Show Gist options
  • Save jubalm/2555111 to your computer and use it in GitHub Desktop.
Save jubalm/2555111 to your computer and use it in GitHub Desktop.
wordpress - enqueue scripts ( and styles )
<?php
// Enqueue Styles and Scripts
add_action('wp_enqueue_scripts', 'load_styles_and_scripts');
function load_styles_and_scripts()
{
wp_enqueue_style( 'style', get_bloginfo('template_directory') . '/css/theme.css' );
wp_enqueue_script( 'script', get_bloginfo('template_directory') . '/js/script.css', 'jquery', '1.7', false );
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment