fix missing default background image page template, switch to category template for bestand

This commit is contained in:
Jonas Heinrich 2020-07-12 16:58:05 +02:00
parent bc2588f56b
commit cb83dea89c
4 changed files with 24 additions and 24 deletions

View file

@ -12,9 +12,12 @@ $kit_category_url = get_category_link( $kit_categories[0]->term_id );
<section class="full-width background-color-page-theme" id="c3318">
<?php if ( has_post_thumbnail() ) { ?>
<div class="intro-element align-center background-color-page-theme-contrast" style="background-image: url(<?php echo get_the_post_thumbnail_url(); ?>);">
<?php } else { ?>
<div class="intro-element align-center background-color-page-theme-contrast" style="background-image: url(/fileadmin/user_upload/00_Startseite/20191216-CN-02-251_Homepage.jpg);">
<div class="intro-element align-center background-color-page-theme-contrast" style="background-image: url(<?php echo get_the_post_thumbnail_url(); ?>);">
<?php } else {
$custom_logo_id = get_theme_mod( 'kit_defaultimage' );
$logo = wp_get_attachment_image_src( $custom_logo_id , 'full' );
?>
<div class="intro-element align-center background-color-page-theme-contrast" style="background-image: url(<?php echo esc_url( $logo[0] ); ?>);">
<?php } ?>
<div class="content-wrap">
<?php if ( has_category() ) { ?>