_s: enqueue style.css for consistency and for more customization through child themes of themes built on _s

git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@8938 d957f892-c61d-0410-b221-f235e6eecf30
This commit is contained in:
Ian Stewart 2012-02-14 16:55:40 +00:00
parent 7aa2224a74
commit 8de2e81018
2 changed files with 3 additions and 2 deletions

View File

@ -97,11 +97,13 @@ function _s_widgets_init() {
add_action( 'widgets_init', '_s_widgets_init' ); add_action( 'widgets_init', '_s_widgets_init' );
/** /**
* Enqueue scripts * Enqueue scripts and styles
*/ */
function _s_scripts() { function _s_scripts() {
global $post; global $post;
wp_enqueue_style( 'style', get_template_directory_uri() . '/style.css' );
wp_enqueue_script( 'jquery' ); wp_enqueue_script( 'jquery' );
wp_enqueue_script( 'small-menu', get_template_directory_uri() . '/js/small-menu.js', 'jquery', '20120206', true ); wp_enqueue_script( 'small-menu', get_template_directory_uri() . '/js/small-menu.js', 'jquery', '20120206', true );

View File

@ -34,7 +34,6 @@
?></title> ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<!--[if lt IE 9]> <!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script> <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>