Created
April 30, 2012 02:50
-
-
Save jubalm/2555111 to your computer and use it in GitHub Desktop.
wordpress - enqueue scripts ( and styles )
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
<?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