Move the wp_enqueue_style() to header.php. see #19978.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19845 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
afb9a77ce1
commit
280b9db44f
|
@ -67,19 +67,6 @@ function twentytwelve_setup() {
|
|||
}
|
||||
endif;
|
||||
|
||||
/**
|
||||
* Enqueues the theme's stylesheet.
|
||||
*
|
||||
* The wp_enqueue_scripts hook is meant for both styles and scripts, and only
|
||||
* fires on the frontend.
|
||||
*
|
||||
* @since Twenty Twelve 1.0
|
||||
*/
|
||||
function twentytwelve_enqueue_scripts() {
|
||||
wp_enqueue_style( 'twentytwelve-style', get_bloginfo( 'stylesheet_url' ) );
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'twentytwelve_enqueue_scripts' );
|
||||
|
||||
/**
|
||||
* Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
|
||||
*
|
||||
|
|
|
@ -23,7 +23,12 @@
|
|||
<!--[if lt IE 9]>
|
||||
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
|
||||
<![endif]-->
|
||||
<?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
|
||||
<?php
|
||||
if ( is_singular() && get_option( 'thread_comments' ) )
|
||||
wp_enqueue_script( 'comment-reply' );
|
||||
|
||||
wp_enqueue_style( 'twentytwelve-style', get_bloginfo( 'stylesheet_url' ) );
|
||||
?>
|
||||
<?php wp_head(); ?>
|
||||
</head>
|
||||
|
||||
|
|
Loading…
Reference in New Issue