fix relative url default preview image
This commit is contained in:
parent
106d12341a
commit
77c2cdffe8
3 changed files with 14 additions and 14 deletions
|
|
@ -12,7 +12,7 @@ get_header();
|
|||
echo esc_html( $categories[0]->name );
|
||||
} ?>
|
||||
</h2>
|
||||
|
||||
|
||||
<div class="tx-indexedsearch">
|
||||
|
||||
<div class="tx-indexedsearch-browsebox">
|
||||
|
|
@ -57,8 +57,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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue