Fix image reference and remove featured image test echos
authorLaury GvR <laury@gaslightmedia.com>
Tue, 16 Apr 2019 21:21:34 +0000 (17:21 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 16 Apr 2019 21:21:34 +0000 (17:21 -0400)
page.php

index 319b6fd..8b67997 100644 (file)
--- a/page.php
+++ b/page.php
@@ -21,12 +21,9 @@ if ( ! defined( 'ABSPATH' ) ) {
        add_filter('widget_posts_args','modify_widget');
 } ?>
 
-<?php echo "<br>nr of featured image on this page: " . avada_number_of_featured_images(); ?>
-<?php if (has_post_thumbnail()) { echo "<br>has post thumbnail"; }?>
-
 <?php if ( 0 >= avada_number_of_featured_images() && !has_post_thumbnail()) { ?>
        <div id="featured-image"
-               style="<?php echo 'background-image: url('.get_template_directory_uri().'/assets/images-default-header.jpg);height:0;padding:0;padding-bottom:20%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 300px;'?>"
+               style="<?php echo 'background-image: url('.get_template_directory_uri().'/assets/images/default-header.jpg);height:0;padding:0;padding-bottom:20%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 300px;'?>"
                class="post-slideshow">
        </div>
 <?php } ?>