mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Twenty Seventeen: Fixes custom header text color issues
Removes default header text color and updates and updates selectors. Props laurelfulford, davidakennedy, Idealien Fixes #38391 git-svn-id: https://develop.svn.wordpress.org/trunk@39224 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
850dd1be76
commit
6d7ed1e861
@ -35,7 +35,6 @@ function twentyseventeen_custom_header_setup() {
|
||||
*/
|
||||
add_theme_support( 'custom-header', apply_filters( 'twentyseventeen_custom_header_args', array(
|
||||
'default-image' => get_parent_theme_file_uri( '/assets/images/header.jpg' ),
|
||||
'default-text-color' => 'ffffff',
|
||||
'width' => 2000,
|
||||
'height' => 1200,
|
||||
'flex-height' => true,
|
||||
@ -85,10 +84,9 @@ function twentyseventeen_header_style() {
|
||||
else :
|
||||
?>
|
||||
.site-title a,
|
||||
.twentyseventeen-front-page:not(.no-header-image) .site-title,
|
||||
.twentyseventeen-front-page:not(.no-header-image) .site-title a,
|
||||
body.has-header-image .site-title a,
|
||||
.site-description,
|
||||
.twentyseventeen-front-page:not(.no-header-image) .site-description {
|
||||
body.has-header-image .site-description {
|
||||
color: #<?php echo esc_attr( $header_text_color ); ?>;
|
||||
}
|
||||
<?php endif; ?>
|
||||
|
||||
@ -11,7 +11,6 @@
|
||||
?>
|
||||
<div class="custom-header">
|
||||
<?php
|
||||
$header_image = get_header_image();
|
||||
|
||||
// Check if Custom Header image has been added.
|
||||
if ( has_custom_header() ) :
|
||||
|
||||
Loading…
Reference in New Issue
Block a user