Changeset 40458 for trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content-excerpt.php
- Timestamp:
- 04/17/2017 10:08:55 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content-excerpt.php
r39618 r40458 31 31 <?php endif; ?> 32 32 33 <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?> 33 <?php if ( is_front_page() && ! is_home() ) { 34 35 // The excerpt is being displayed within a front page section, so it's a lower hierarchy than h2. 36 the_title( sprintf( '<h3 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h3>' ); 37 } else { 38 the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); 39 } ?> 34 40 </header><!-- .entry-header --> 35 41
Note: See TracChangeset
for help on using the changeset viewer.