From: Anthony Talarico Date: Fri, 16 Mar 2018 18:59:59 +0000 (-0400) Subject: fixing default header images for posts X-Git-Tag: v1.0.15^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=176f68939cf06c5517eb1f1dc34159aa90ecfbd7;p=WP-Themes%2Fwmta.git fixing default header images for posts fixing default header images on posts --- diff --git a/functions.php b/functions.php index e273eef..2a7c834 100644 --- a/functions.php +++ b/functions.php @@ -264,8 +264,8 @@ function wmta_scripts() { wp_enqueue_script( 'wmta-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true ); - wp_enqueue_script( 'glm-dev', get_template_directory_uri() . '/assets/javascript/glm-dev.js', array(), '1.0.14.0', true ); - wp_enqueue_style( 'glm-style', get_template_directory_uri() . '/assets/stylesheets/glm-dev.css', false, "1.0.14.0" ); + wp_enqueue_script( 'glm-dev', get_template_directory_uri() . '/assets/javascript/glm-dev.js', array(), '1.0.15.0', true ); + wp_enqueue_style( 'glm-style', get_template_directory_uri() . '/assets/stylesheets/glm-dev.css', false, "1.0.15" ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); diff --git a/inc/hero-header-news-single.php b/inc/hero-header-news-single.php index cb08715..0dbfdf2 100644 --- a/inc/hero-header-news-single.php +++ b/inc/hero-header-news-single.php @@ -6,7 +6,7 @@ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); echo ' style="background-image: url('.$image[0].');"' ; } else { - echo ''; + echo 'style="background-image: url('.esc_url(get_template_directory_uri()).'/assets/img/default-header-member.jpg)" alt="" >'; } ?>> diff --git a/style.css b/style.css index 7f4198a..09d00c5 100644 --- a/style.css +++ b/style.css @@ -4,7 +4,7 @@ Theme URI: http://underscores.me/ Author: Underscores.me Author URI: http://underscores.me/ Description: Description -Version: 1.0.14 +Version: 1.0.15 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Text Domain: wmta