Ticket #23790: 23790.diff
File 23790.diff, 1.9 KB (added by , 12 years ago) |
---|
-
wp-content/themes/twentytwelve/inc/custom-header.php
21 21 function twentytwelve_custom_header_setup() { 22 22 $args = array( 23 23 // Text color and image (empty to use none). 24 'default-text-color' => ' 444',24 'default-text-color' => '515151', 25 25 'default-image' => '', 26 26 27 27 // Set height and width, with a maximum value for the width. … … 47 47 add_action( 'after_setup_theme', 'twentytwelve_custom_header_setup' ); 48 48 49 49 /** 50 * Loads our special font CSS file. 51 * 52 * @since Twenty Twelve 1.2 53 * 54 * @return void 55 */ 56 function twentytwelve_custom_header_fonts() { 57 $fonts_url = twentytwelve_get_font_url(); 58 if ( ! empty( $fonts_url ) ) 59 wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $fonts_url ), array(), null ); 60 } 61 add_action( 'admin_print_styles-appearance_page_custom-header', 'twentytwelve_custom_header_fonts' ); 62 63 /** 50 64 * Styles the header text displayed on the blog. 51 65 * 52 66 * get_header_textcolor() options: 444 is default, hide text (returns 'blank'), or any hex value. … … 96 110 <style type="text/css"> 97 111 .appearance_page_custom-header #headimg { 98 112 border: none; 113 font-family: "Open Sans", Helvetica, Arial, sans-serif; 99 114 } 100 115 #headimg h1, 101 116 #headimg h2 { 102 line-height: 1. 6;117 line-height: 1.84615; 103 118 margin: 0; 104 119 padding: 0; 105 120 } 106 121 #headimg h1 { 107 font-size: 30px;122 font-size: 26px; 108 123 } 109 124 #headimg h1 a { 110 125 color: #515151; 111 126 text-decoration: none; 112 127 } 113 128 #headimg h1 a:hover { 114 color: #21759b ;129 color: #21759b !important; /* Has to override custom inline style. */ 115 130 } 116 131 #headimg h2 { 117 132 color: #757575; 118 font : normal 13px/1.8 "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", sans-serif;133 font-size: 13px; 119 134 margin-bottom: 24px; 120 135 } 121 136 #headimg img {