]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-content/themes/twentythirteen/inc/custom-header.php
WordPress 4.1-scripts
[autoinstalls/wordpress.git] / wp-content / themes / twentythirteen / inc / custom-header.php
index 2fabe5bcb1d0ad7261e122a104480bf82126266b..61bc6aff7b85954a64faab37ac7ed824c2c2a20d 100644 (file)
@@ -72,7 +72,7 @@ function twentythirteen_custom_header_fonts() {
        wp_enqueue_style( 'twentythirteen-fonts', twentythirteen_fonts_url(), array(), null );
 
        // Add Genericons font.
-       wp_enqueue_style( 'genericons', get_template_directory_uri() . '/fonts/genericons.css', array(), '2.09' );
+       wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.03' );
 }
 add_action( 'admin_print_styles-appearance_page_custom-header', 'twentythirteen_custom_header_fonts' );
 
@@ -101,6 +101,16 @@ function twentythirteen_header_style() {
                        background: url(<?php header_image(); ?>) no-repeat scroll top;
                        background-size: 1600px auto;
                }
+               @media (max-width: 767px) {
+                       .site-header {
+                               background-size: 768px auto;
+                       }
+               }
+               @media (max-width: 359px) {
+                       .site-header {
+                               background-size: 360px auto;
+                       }
+               }
        <?php
                endif;
 
@@ -210,7 +220,7 @@ function twentythirteen_admin_header_image() {
        <div id="headimg" style="background: url(<?php header_image(); ?>) no-repeat scroll top; background-size: 1600px auto;">
                <?php $style = ' style="color:#' . get_header_textcolor() . ';"'; ?>
                <div class="home-link">
-                       <h1 class="displaying-header-text"><a id="name"<?php echo $style; ?> onclick="return false;" href="#"><?php bloginfo( 'name' ); ?></a></h1>
+                       <h1 class="displaying-header-text"><a id="name"<?php echo $style; ?> onclick="return false;" href="#" tabindex="-1"><?php bloginfo( 'name' ); ?></a></h1>
                        <h2 id="desc" class="displaying-header-text"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></h2>
                </div>
        </div>