define default featured image on page

This commit is contained in:
Jonas Heinrich 2020-06-14 14:27:48 +02:00
parent 77306b737b
commit 28be03d171
3 changed files with 21 additions and 2 deletions

View file

@ -52,7 +52,9 @@ get_header();
<figure class="teaser-box-image">
<?php if ( has_post_thumbnail() ) { ?>
<img src="<?php echo get_the_post_thumbnail_url(); ?>">
<?php } ?>
<?php } else { ?>
<img src="<?php echo esc_url( get_option( 'kit_defaultimage' ) ); ?>">
<?php } ?>
</figure>
</a>
<?php echo '<a href="' . esc_url( get_permalink() ) . '">'; ?>