Add header to blog pages
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 3 Apr 2015 17:54:25 +0000 (13:54 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 3 Apr 2015 17:54:25 +0000 (13:54 -0400)
Add new- h1 to home.php and add empty h1 to the single.php

home.php
single.php

index 4953c8f..0309d0b 100644 (file)
--- a/home.php
+++ b/home.php
@@ -5,39 +5,40 @@
             <div class="row">
                 <div class="small-11 small-centered columns">
                     <div class="row">
-            <div id="blog-posts-over" class="small-12 medium-9 columns">
-                <?php if(have_posts()): $i = 1; while (have_posts() && $i < 6) : the_post(); ?>
-                <div class="row blog-posts-container">
-                    <div class="small-12 small-centered columns content">
-                        <div class="row">
-                            <div class="small-12 columns">
-                                <article id="<?php the_ID()?>" <?php post_class()?>>
-                                    <header class="entry-header">
-                                        <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
-                                        <span class="meta"> Posted on <strong><?php the_time('F jS, Y'); ?></strong> </span>
-                                    </header>
-                                    <?php echo the_advanced_excerpt('length=50&length_type=words&no_custom=1&ellipsis=%26hellip;'); ?>
-                                </article>
+                        <div id="blog-posts-over" class="small-12 medium-9 columns">
+                            <h1>News</h1>
+                            <?php if(have_posts()): while (have_posts() ) : the_post(); ?>
+                            <div class="row blog-posts-container">
+                                <div class="small-12 small-centered columns content">
+                                    <div class="row">
+                                        <div class="small-12 columns">
+                                            <article id="<?php the_ID()?>" <?php post_class()?>>
+                                                <header class="entry-header">
+                                                    <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
+                                                    <span class="meta"> Posted on <strong><?php the_time('F jS, Y'); ?></strong> </span>
+                                                </header>
+                                                <?php echo the_advanced_excerpt('length=50&length_type=words&no_custom=1&ellipsis=%26hellip;'); ?>
+                                            </article>
+                                        </div>
+                                    </div>
+                                </div>
                             </div>
+                            <?php endwhile; ?>
+                            <div class="navigation">
+                                <span class="newer"><?php previous_posts_link(__('« Newer','example')) ?></span> <span class="older"><?php next_posts_link(__('Older »','example')) ?></span>
+                            </div><!-- /.navigation -->
+                            <?php else: ?>
+                            <div id="post-404" class="noposts">
+                                    <p><?php _e('Sorry, no posts yet');?></p>
+                            </div><!-- /#post-404 -->
+                            <?php endif;?>
                         </div>
+                        <div class="small-12 medium-3 columns">
+                            <?php get_template_part('parts/blog-side');?>
+                        </div>
+                        <?php get_template_part('parts/logos');?>
                     </div>
                 </div>
-                <?php endwhile; ?>
-                <div class="navigation">
-                    <span class="newer"><?php previous_posts_link(__('« Newer','example')) ?></span> <span class="older"><?php next_posts_link(__('Older »','example')) ?></span>
-                </div><!-- /.navigation -->
-                <?php else: ?>
-                <div id="post-404" class="noposts">
-                        <p><?php _e('Sorry, no posts yet');?></p>
-                </div><!-- /#post-404 -->
-                <?php endif;?>
-            </div>
-            <div class="small-12 medium-3 columns">
-                <?php get_template_part('parts/blog-side');?>
             </div>
-            <?php get_template_part('parts/logos');?>
         </div>
-                    </div>
-                </div>
-            </div>
 <?php get_footer(); ?>
index 93f5e62..9e96588 100644 (file)
@@ -10,6 +10,7 @@
                 <div class="small-11 small-centered columns">
                     <div class="row">
         <div id="blog-posts-over" class="small-12 medium-9 columns">
+            <h1>&nbsp;</h1>
             <?php if(have_posts()) : while(have_posts()): the_post();?>
             <div class="row content" id="blog-posts-container">
                 <div class="small-11 small-centered columns">