I updated the feature image call on the original glmTheme.
function glm_get_header() {
echo '<div';
function glm_get_header() {
echo '<div';
- if (has_post_thumbnail()) {
+ if (has_post_thumbnail() && $post->post_type == 'page') {
$image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full");
echo ' style="background-image: url('.$image_data[0].');height:0;padding:0;padding-bottom:20%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 300px; "';
} else {
$image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full");
echo ' style="background-image: url('.$image_data[0].');height:0;padding:0;padding-bottom:20%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 300px; "';
} else {