Skip to content

Commit

Permalink
Show featured image on /new page.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbohacek committed Nov 2, 2022
1 parent 5fd9031 commit 79e70e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions template-new-content.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
<main role="main" class="container-fluid m-0 p-0">
<h1 class="text-center post-title mt-5"><span><?php the_title(); ?></span></h1>

<!-- <div class="thumbnail-wrapper" style="<?php echo $dominant_color_css; ?>"> -->
<div class="thumbnail-wrapper" style="<?php echo $dominant_color_css; ?>">
<?php
// $post_thumbnail_id = get_post_thumbnail_id();
// the_post_thumbnail('post-thumbnail', ['data-src' => get_the_post_thumbnail_url( $post_thumbnail_id ),'class' => 'lazy-load expand-image', 'title' => get_post($post_thumbnail_id)->post_title ]);
$post_thumbnail_id = get_post_thumbnail_id();
the_post_thumbnail('post-thumbnail', ['data-src' => get_the_post_thumbnail_url( $post_thumbnail_id ),'class' => 'lazy-load expand-image', 'title' => get_post($post_thumbnail_id)->post_title ]);
?>
<!-- </div> -->
</div>
<div class="container">
<article id="post-<?php echo $post_id; ?>" <?php post_class(); ?>>
<div class="post-content">
Expand Down

0 comments on commit 79e70e1

Please sign in to comment.