WordPress.org

Make WordPress Core

Ticket #38391: 38391.3.patch

File 38391.3.patch, 1.6 KB (added by laurelfulford, 5 years ago)

Updates CSS selectors in custom-header.php.

  • src/wp-content/themes/twentyseventeen/inc/custom-header.php

     
    3535         */
    3636        add_theme_support( 'custom-header', apply_filters( 'twentyseventeen_custom_header_args', array(
    3737                'default-image'      => get_parent_theme_file_uri( '/assets/images/header.jpg' ),
    38                 'default-text-color' => 'ffffff',
    3938                'width'              => 2000,
    4039                'height'             => 1200,
    4140                'flex-height'        => true,
     
    8584                else :
    8685        ?>
    8786                .site-title a,
    88                 .twentyseventeen-front-page:not(.no-header-image) .site-title,
    89                 .twentyseventeen-front-page:not(.no-header-image) .site-title a,
     87                 body.has-header-image .site-title a,
    9088                .site-description,
    91                 .twentyseventeen-front-page:not(.no-header-image) .site-description {
     89                body.has-header-image .site-description {
    9290                        color: #<?php echo esc_attr( $header_text_color ); ?>;
    9391                }
    9492        <?php endif; ?>
  • src/wp-content/themes/twentyseventeen/template-parts/header/header-image.php

     
    1111?>
    1212<div class="custom-header">
    1313        <?php
    14         $header_image = get_header_image();
    1514
    1615        // Check if Custom Header image has been added.
    1716        if ( has_custom_header() ) :