- Timestamp:
- 10/21/2016 10:14:26 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyseventeen/components/header/header-image.php
r38833 r38868 20 20 <?php get_template_part( 'components/header/site', 'branding' ); ?> 21 21 22 <?php elseif ( twentyseventeen_is_frontpage() && has_post_thumbnail() ) :23 // If not, fall back to front page's featured image, only on the front page.24 $post_thumbnail_id = get_post_thumbnail_id( $post->ID );25 $thumbnail_attributes = wp_get_attachment_image_src( $post_thumbnail_id, 'twentyseventeen-featured-image' );26 ?>27 28 <div class="custom-header-image" style="background-image: url(<?php echo esc_url( $thumbnail_attributes[0] ); ?>)"></div>29 <?php get_template_part( 'components/header/site', 'branding' ); ?>30 31 22 <?php else : ?> 32 23 <?php // Otherwise, show a blank header. ?>
Note: See TracChangeset
for help on using the changeset viewer.