Make WordPress Core

Changeset 39224


Ignore:
Timestamp:
11/14/2016 04:48:32 PM (8 years ago)
Author:
karmatosed
Message:

Twenty Seventeen: Fixes custom header text color issues

Removes default header text color and updates and updates selectors.

Props laurelfulford, davidakennedy, Idealien
Fixes #38391

Location:
trunk/src/wp-content/themes/twentyseventeen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/inc/custom-header.php

    r38985 r39224  
    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,
     
    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        }
  • trunk/src/wp-content/themes/twentyseventeen/template-parts/header/header-image.php

    r38985 r39224  
    1212<div class="custom-header">
    1313    <?php
    14     $header_image = get_header_image();
    1514
    1615    // Check if Custom Header image has been added.
Note: See TracChangeset for help on using the changeset viewer.