testing image sizes for the rooms
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 17 May 2018 17:55:46 +0000 (13:55 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 17 May 2018 17:55:46 +0000 (13:55 -0400)
functions.php
rooms.php

index f62e279..53ba9f4 100644 (file)
@@ -307,6 +307,11 @@ if (!function_exists('glm_get_clientinfo_option')) {
             : null;
     }
 }
+function wpse_setup_theme() {
+    add_image_size('glm-block', 600, 300,true);
+}
+add_action( 'after_setup_theme', 'wpse_setup_theme' );
+
 add_action( 'admin_init', 'posts_order_wpse_91866' );
 
 function posts_order_wpse_91866() 
index 2dfe357..242ee8a 100644 (file)
--- a/rooms.php
+++ b/rooms.php
@@ -60,7 +60,7 @@ get_header();
                                     </div>
                                     <div class="small-12 medium-12 large-6 grid-columns">
                                         <div class="room-image">
-                                            <?php the_post_thumbnail(array(475,350)); ?> 
+                                            <?php the_post_thumbnail('glm-block'); ?> 
                                         </div>
                                     </div>
                                     <div class="small-12 medium-12 large-12 grid-columns accordion-wrapper accordion-outer">