fix relative url default preview image

This commit is contained in:
Jonas Heinrich 2020-06-18 15:33:09 +02:00
parent 106d12341a
commit 77c2cdffe8
3 changed files with 14 additions and 14 deletions

View file

@ -139,8 +139,11 @@ get_header();
<figure class="teaser-box-image">
<?php if ( has_post_thumbnail() ) { ?>
<img src="<?php echo get_the_post_thumbnail_url(); ?>">
<?php } else { ?>
<img src="<?php echo esc_url( get_option( 'kit_defaultimage' ) ); ?>">
<?php } else {
$custom_logo_id = get_theme_mod( 'kit_defaultimage' );
$logo = wp_get_attachment_image_src( $custom_logo_id , 'full' );
?>
<img src="<?php echo esc_url( $logo[0] ); ?>">
<?php } ?>
</figure>
</a>