- Timestamp:
- 11/04/2014 06:41:56 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/inc/custom-header.php
r30221 r30230 80 80 function twentyfifteen_header_style() { 81 81 $header_image = get_header_image(); 82 $text_color = get_header_textcolor();83 82 84 83 // If no custom options for text are set, let's bail. 85 if ( empty( $header_image ) && $text_color == get_theme_support( 'custom-header', 'default-text-color') ) {84 if ( empty( $header_image ) && display_header_text() ) { 86 85 return; 87 86 } … … 126 125 position: absolute; 127 126 } 128 <?php129 // If the user has set a custom color for the text use that130 elseif ( $text_color != get_theme_support( 'custom-header', 'default-text-color' ) ) :131 ?>132 .site-title a,133 .site-title a:hover,134 .site-title a:focus,135 .site-description {136 color: #<?php echo esc_attr( $text_color ); ?>;137 }138 127 <?php endif; ?> 139 128 </style> … … 229 218 $css = ' 230 219 /* Custom Sidebar Text Color */ 220 .site-title a, 221 .site-description, 231 222 .secondary-toggle:before { 232 223 color: %1$s; 224 } 225 226 .site-title a:hover, 227 .site-title a:focus { 228 color: %1$s; /* Fallback for IE7 and IE8 */ 229 color: %2$s; 233 230 } 234 231
Note: See TracChangeset
for help on using the changeset viewer.