Move the wp_enqueue_style() to header.php. see #19978.
git-svn-id: https://develop.svn.wordpress.org/trunk@19845 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2746fd144a
commit
bd5c1f88e9
@ -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
Block a user