golden hour
/home/doctorbruno/public_html/doc-noc.com/wp-content/themes/astrid/template-parts
⬆️ Go Up
Upload
File/Folder
Size
Actions
content-none.php
1.1 KB
Del
OK
content-page.php
1.13 KB
Del
OK
content-search.php
783 B
Del
OK
content.php
1.86 KB
Del
OK
Edit: content.php
<?php /** * Template part for displaying posts. * * @link https://codex.wordpress.org/Template_Hierarchy * * @package Astrid */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <header class="entry-header"> <?php if ( is_single() ) { the_title( '<h1 class="entry-title">', '</h1>' ); } else { the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); } if ( 'post' === get_post_type() && get_theme_mod('hide_meta') != 1 ) : ?> <div class="entry-meta"> <?php astrid_posted_on(); ?> </div><!-- .entry-meta --> <?php endif; ?> </header><!-- .entry-header --> <?php if ( has_post_thumbnail() && ( get_theme_mod( 'featured_image' ) != 1 ) ) : ?> <?php if ( is_single() ) : ?> <div class="single-thumb"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail('astrid-large-thumb'); ?></a> </div> <?php else : ?> <div class="entry-thumb"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail('astrid-medium-thumb'); ?></a> </div> <?php endif; ?> <?php endif; ?> <?php if ( is_single() ) : ?> <div class="entry-content"> <?php the_content(); ?> </div> <?php else : ?> <div class="entry-summary"> <?php the_excerpt(); ?> </div> <div class="read-more clearfix"> <a class="button post-button" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php esc_html_e('Read more', 'astrid'); ?></a> </div> <?php endif; ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'astrid' ), 'after' => '</div>', ) ); ?> <?php if ( is_single() && get_theme_mod('hide_meta') != 1 ) : ?> <footer class="entry-footer"> <?php astrid_entry_footer(); ?> </footer><!-- .entry-footer --> <?php endif; ?> </article><!-- #post-## -->
Save