adjusting the front page blog feed structure to match the blocks
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 3 May 2017 17:57:46 +0000 (13:57 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 3 May 2017 17:57:46 +0000 (13:57 -0400)
the one blog post that is being pulled into the front page with the 2 blocks was not structured
or styled in the same manner as the blocks and as a result was displaying different when images
were added. I added a block class to the one post container and removed the nested column class
that was wrapping the image so that it would help keep it similar to the block images

parts/blog-feed-front.php

index 0a86445..c6a4111 100644 (file)
@@ -1,15 +1,13 @@
 <?php $args = array( 'numberposts' => 1);?>
-<div id="home-feed-posts">
+
 <?php
 $lastposts = get_posts( $args );
     $count = 0;
 foreach($lastposts as $posts) : setup_postdata($posts); ?>
-    <div class="home-feed-post text-center small-12 medium-4 columns medium-text-left" data-equalizer-watch>
+    <div class="home-feed-post text-center small-12 medium-4 columns medium-text-left block" data-equalizer-watch>
         <div class="row">
             <?php if (has_post_thumbnail( $posts->ID )) { ?>
-            <div class="small-11 small-centered columns text-center home-feed-post-image">
-                <?php echo get_the_post_thumbnail($posts->ID, array(190, 190), array('class' => 'blog-excerpt-img-wrap')); ?>
-                </div>
+                <?php echo get_the_post_thumbnail($posts->ID, 'glm-block-image', array('class' => 'blog-excerpt-img-wrap')); ?>
                 <div class="small-12 medium-12 columns home-feed-post-content">
                 <?php } else { ?>
                 <div class="small-12 columns home-feed-post-content">