Changed the bottom padding that displays the header image to 15%.
if ( has_post_thumbnail($post_id) && is_post_type('page')) {
$image_data = wp_get_attachment_image_src(get_post_thumbnail_id($post_id), "full");
- echo ' style="background-image: url('.$image_data[0].');padding:0 0 30%;background-position: center center;background-repeat:no-repeat;max-height: 300px;background-size: cover;margin: 0 auto; "';
+ echo ' style="background-image: url('.$image_data[0].');padding:0 0 15%;background-position: center center;background-repeat:no-repeat;max-height: 300px;background-size: cover;margin: 0 auto; "';
} else {
- echo ' style="background-image: url('.get_template_directory_uri().'/assets/Default-Featured-Image-1600px.jpg);padding:0 0 30%;background-position: center center;background-repeat:no-repeat;max-height: 300px;background-size: cover;margin: 0 auto; "';
+ echo ' style="background-image: url('.get_template_directory_uri().'/assets/Default-Featured-Image-1600px.jpg);padding:0 0 15%;background-position: center center;background-repeat:no-repeat;max-height: 300px;background-size: cover;margin: 0 auto; "';
echo ' class="no-featured"';
}
echo '>';