adding default front page header image
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 26 Jul 2018 16:50:55 +0000 (12:50 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 26 Jul 2018 16:50:55 +0000 (12:50 -0400)
assets/header.png [new file with mode: 0644]
header.php

diff --git a/assets/header.png b/assets/header.png
new file mode 100644 (file)
index 0000000..d794458
Binary files /dev/null and b/assets/header.png differ
index 44a94d7..fb0f04a 100644 (file)
     } ?>
        <div id="content" class="site-content <?php echo esc_attr($content_class); ?>">
        <?php 
-       if(is_home() || is_front_page()) :
+    if(is_home() || is_front_page()) :
+        if(of_get_option('show_slider')== "no"): ?> 
+            <div id="home-featured-image" style="background-image: url(<?php echo get_template_directory_uri(); ?>/assets/header.png);height:100%;padding-bottom:27%;background-position:center center;background-size: 100%;background-repeat:no-repeat; "></div>
+        <?php endif;
                do_action('accesspress_bxslider'); 
        endif;
        ?>