Add width to default featured image on mobile view
authorLaury GvR <laury@gaslightmedia.com>
Tue, 16 Apr 2019 21:35:58 +0000 (17:35 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 16 Apr 2019 21:35:58 +0000 (17:35 -0400)
page.php

index 8b67997..82d551b 100644 (file)
--- a/page.php
+++ b/page.php
@@ -23,7 +23,7 @@ if ( ! defined( 'ABSPATH' ) ) {
 
 <?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%;width:100%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 300px;'?>"
                class="post-slideshow">
        </div>
 <?php } ?>