Changeset 19845
- Timestamp:
- 02/06/2012 11:07:41 PM (13 years ago)
- Location:
- trunk/wp-content/themes/twentytwelve
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentytwelve/functions.php
r19844 r19845 67 67 } 68 68 endif; 69 70 /**71 * Enqueues the theme's stylesheet.72 *73 * The wp_enqueue_scripts hook is meant for both styles and scripts, and only74 * fires on the frontend.75 *76 * @since Twenty Twelve 1.077 */78 function twentytwelve_enqueue_scripts() {79 wp_enqueue_style( 'twentytwelve-style', get_bloginfo( 'stylesheet_url' ) );80 }81 add_action( 'wp_enqueue_scripts', 'twentytwelve_enqueue_scripts' );82 69 83 70 /** -
trunk/wp-content/themes/twentytwelve/header.php
r19842 r19845 24 24 <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script> 25 25 <![endif]--> 26 <?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?> 26 <?php 27 if ( is_singular() && get_option( 'thread_comments' ) ) 28 wp_enqueue_script( 'comment-reply' ); 29 30 wp_enqueue_style( 'twentytwelve-style', get_bloginfo( 'stylesheet_url' ) ); 31 ?> 27 32 <?php wp_head(); ?> 28 33 </head>
Note: See TracChangeset
for help on using the changeset viewer.