From 84a9a862d56981d7841b1542e8962267b965fe37 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 16 Mar 2018 16:03:08 -0400 Subject: [PATCH] fixing default posts image fixing default post image size --- functions.php | 4 ++-- inc/hero-header-news-single.php | 23 +++++++++++++++-------- style.css | 2 +- 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/functions.php b/functions.php index 2a7c834..e692562 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.15.0', true ); - wp_enqueue_style( 'glm-style', get_template_directory_uri() . '/assets/stylesheets/glm-dev.css', false, "1.0.15" ); + wp_enqueue_script( 'glm-dev', get_template_directory_uri() . '/assets/javascript/glm-dev.js', array(), '1.0.16.0', true ); + wp_enqueue_style( 'glm-style', get_template_directory_uri() . '/assets/stylesheets/glm-dev.css', false, "1.0.16" ); 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 0dbfdf2..535bdd1 100644 --- a/inc/hero-header-news-single.php +++ b/inc/hero-header-news-single.php @@ -1,14 +1,16 @@
-
ID ) ) { - $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); - echo ' style="background-image: url('.$image[0].');"' ; - } else { - echo 'style="background-image: url('.esc_url(get_template_directory_uri()).'/assets/img/default-header-member.jpg)" alt="" >'; - - } ?>> + ID ) ) { ?> +
+ ID ), 'single-post-thumbnail' ); + echo '' ; + } else { ?> +
+ '; + } + ?>
@@ -27,3 +29,8 @@ -->
+ \ No newline at end of file diff --git a/style.css b/style.css index 09d00c5..b99312e 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.15 +Version: 1.0.16 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Text Domain: wmta -- 2.17.1