Got rid of the extra newsfeed on front page, fixed h1 title.
authorLaury GvR <laury@gaslightmedia.com>
Wed, 8 Jul 2015 20:55:39 +0000 (16:55 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 8 Jul 2015 20:55:39 +0000 (16:55 -0400)
front-page.php
parts/blog-feed.php

index 1ec686e..edf3553 100644 (file)
@@ -3,33 +3,6 @@
 <main>
     <div class="row" data-equalizer>
         <div id="front" class="small-12 medium-7 large-8 columns" data-equalizer-watch>
-            <h1>EMMET COUNTY NEWS</h1>
-            <div id="home-feed-posts">
-            <?php
-            $args = array( 'numberposts' => 3);
-            $lastposts = get_posts( $args );
-            foreach($lastposts as $post) : setup_postdata($post); ?>
-                <div class="home-feed-post">
-
-                    <div class="row">
-                        <?php if (has_post_thumbnail( $post->ID )) { ?> 
-                        <div class="small-8 small-centered medium-3 medium-uncentered columns home-feed-post-image">
-                            <?php echo get_the_post_thumbnail($post->ID, array(190, 190), array('class' => 'blog-excerpt-img-wrap')); ?>
-                            </div>
-                            <div class="small-12 medium-9 columns home-feed-post-content">
-                             <?php } else { ?>
-                            <div class="small-12 columns home-feed-post-content">
-                            <?php } ?>
-                            <h3 class="title-posts" href="<?php the_permalink(); ?>"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
-
-<!--                            <p id="date" class="italic"><?php // echo get_the_date('D, F j, Y g:iA', $post->ID); ?></p>-->
-
-                            <div><?php echo the_advanced_excerpt('length=95&length_type=characters&no_custom=1&ellipsis=%26hellip;&exclude_tags=a,img,p,strong,h1,h2,h3,hr,div'); ?></div>
-                        </div>
-                    </div>
-                </div>
-            <?php endforeach; ?>
-            </div>
             <div class="row collapse">
                 <?php if(have_posts()) : while(have_posts()): the_post();?>
                 <?php the_content();?>
@@ -41,6 +14,7 @@
                     get_template_part('parts/glm-blocks');
                     ?>
                 </div>
+                <h1>RECENT EMMET COUNTY NEWS</h1>
                 <div id="blog-feed" class="small-12 columns">
                     <?php get_template_part("parts/blog-feed");?>
                 </div>
index 53bcf61..5c9c994 100644 (file)
@@ -5,7 +5,7 @@
 
             <div class="content-wrapper">
                 <div class="row wordpress-content">
-                <h1>Recent News</h1>
+                <h1>Recent Emmet County News</h1>
                 <?php foreach($lastposts as $post) : setup_postdata($post); ?>
                     <div class="small-12 columns blog-feed-post">
                         <?php $thumbnail = get_the_post_thumbnail($post->ID, array(130, 130)); ?>