increasing the size of the front page service images
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 24 May 2018 16:02:45 +0000 (12:02 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 24 May 2018 16:02:45 +0000 (12:02 -0400)
layouts/service-section.php
style.css

index 99bfd9d..b6e21a0 100644 (file)
@@ -33,7 +33,7 @@
                <div class="clearfix service-list <?php echo esc_attr($service_class); ?>" data-wow-delay="<?php echo $i; ?>s">
                        <div class="service-image">
                                <?php if(has_post_thumbnail()) : 
-                               $image = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()),'thumbnail'); ?>
+                               $image = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()),array(300, 300)); ?>
                                        <img src="<?php echo esc_url($image[0]); ?>" alt="<?php the_title(); ?>">
                                <?php else: ?>
                                        <img src="<?php echo get_template_directory_uri(); ?>/images/no-image.jpg" alt="<?php the_title(); ?>">
index 67de1ee..70dc4df 100644 (file)
--- a/style.css
+++ b/style.css
@@ -1807,8 +1807,8 @@ Service Section
 }
 
 .service-list .service-image {
-    height: 125px;
-    width: 125px;
+    height: 300px;
+    width: 300px;
     /* margin-top: 15px; */
     overflow: hidden;
     border: 3px solid #EEE;