WordPress.org

Make WordPress Core

Changeset 39394


Ignore:
Timestamp:
11/30/16 23:38:54 (7 months ago)
Author:
helen
Message:

Twenty Seventeen: Make fixed navigation apply at correct height on front page, without header video or image

Props laurelfulford, littlebigthing.

Merges [39392] to the 4.7 branch.
Fixes #38927 for 4.7.

Location:
branches/4.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.7

  • branches/4.7/src/wp-content/themes/twentyseventeen/template-parts/header/header-image.php

    r39227 r39394  
    1212<div class="custom-header"> 
    1313 
    14     <div class="custom-header-image"> 
    15         <?php the_custom_header_markup(); ?> 
    16     </div> 
     14    <?php if ( has_custom_header() ) : ?> 
     15        <div class="custom-header-image"> 
     16            <?php the_custom_header_markup(); ?> 
     17        </div> 
     18    <?php endif; ?> 
    1719 
    1820    <?php get_template_part( 'template-parts/header/site', 'branding' ); ?> 
Note: See TracChangeset for help on using the changeset viewer.