adding image sizes for the hover map
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 25 Oct 2017 13:20:58 +0000 (09:20 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 25 Oct 2017 13:20:58 +0000 (09:20 -0400)
setting thumbnail sizes for the hover map images on the front page

functions.php
parts/header-meta.php
parts/map-section.php
style.css

index 61b089a..1f0358e 100644 (file)
@@ -118,6 +118,7 @@ add_action('init', 'mytheme_init', 10);
 function wpse_setup_theme() {
     add_image_size('glm_blocks', '600', '600', true);
     add_image_size('glm_blocks_small', '500', '333',true);
+    add_image_size('glm-map-image', 290, 190,true);
 }
 
 add_action( 'after_setup_theme', 'wpse_setup_theme' );
index ca6aeae..a2695ec 100644 (file)
@@ -3,7 +3,7 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <meta http-equiv="X-UA-Compatible" content="IE=10">
     <title><?php wp_title(); ?></title>
-    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/app.css">
+    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/app.css?v=1.0.1">
     <link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.ico">
     <link href="https://fonts.googleapis.com/css?family=Roboto+Slab:400,700" rel="stylesheet">
     <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700" rel="stylesheet">
index ced50ac..1b95f39 100644 (file)
 //        $content       = strip_shortcodes($content);
         $content = get_excerpt_by_id($city_page[0]->ID, 55);
         $city_image_id = get_post_thumbnail_id($city_page[0]->ID);
-        $city_image    = wp_get_attachment_image_src( $city_image_id, 250,250, true);
+        $city_image    = wp_get_attachment_image_src( $city_image_id, 'glm-map-image', true);
         $city_url = get_permalink($city_page[0]->ID);
         
         if($city_image_id){
-            $city_image    = wp_get_attachment_image_src( $city_image_id, 250,250, true);
+            $city_image    = wp_get_attachment_image_src( $city_image_id, 'glm-map-image', true);
             $city_image = $city_image[0];
         } else {
             $city_image = get_template_directory_uri() .'/assets/default.jpg';
index c87aaeb..05e6572 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: Coldwater
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for coldwater
-Version: 1.0.0
+Version: 1.0.1
 */