Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //twentyseventeen/template-parts/post/content.php
- <header class="entry-header">
- <?php
- if ( 'post' === get_post_type() ) {
- echo '<div class="entry-meta">';
- if ( is_single() ) {
- twentyseventeen_posted_on();
- echo ' - '; comments_popup_link();
- } else {
- echo twentyseventeen_time_link();
- echo ' - '; comments_popup_link();
- twentyseventeen_edit_link();
- };
- echo '</div><!-- .entry-meta -->';
- };
- if ( is_single() ) {
- the_title( '<h1 class="entry-title">', '</h1>' );
- } elseif ( is_front_page() && is_home() ) {
- the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' );
- } else {
- the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
- }
- ?>
- </header><!-- .entry-header -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement