Changeset 58206 for trunk/src/wp-content/themes/twentyseventeen/header.php
- Timestamp:
- 05/27/2024 12:26:51 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyseventeen/header.php
r55276 r58206 48 48 49 49 <?php 50 51 /* 52 * If a regular post or page, and not the front page, show the featured image. 53 * Using get_queried_object_id() here since the $post global may not be set before a call to the_post(). 54 */ 55 if ( ( is_single() || ( is_page() && ! twentyseventeen_is_frontpage() ) ) && has_post_thumbnail( get_queried_object_id() ) ) : 50 if ( twentyseventeen_should_show_featured_image() ) : 56 51 echo '<div class="single-featured-image-header">'; 57 52 echo get_the_post_thumbnail( get_queried_object_id(), 'twentyseventeen-featured-image' );
Note: See TracChangeset
for help on using the changeset viewer.