define default featured image on page
This commit is contained in:
parent
77306b737b
commit
28be03d171
3 changed files with 21 additions and 2 deletions
|
|
@ -139,7 +139,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() ) . '">'; ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue